Interfaces and Deployment
Use this sub-skill when the task is about Chonkie's command line interface, the local self-hosted FastAPI API, Chonkie Cloud wrappers, logging/configuration, or serving/deployment. It is optimized for safe local diagnostics and for constructing correct commands or HTTP/API payloads without starting long-lived services or using credentials by default.
Route first
- For Python
Pipeline().fetch_from().process_with().chunk_with().refine_with().run() workflows, read ../pipelines-and-processing/.
- For deterministic local chunker behavior, chunk object fields, tokenizer details, or fallback chunker choice, read
../chunking-and-types/.
- For model/provider embedding keys and third-party generative/provider credentials, read
../embeddings-and-generative/.
- For vector database services, handshakes, and storage credentials, read
../integrations-and-storage/.
Read the bundled references
references/cli-reference.md for installed chonkie commands, flags, parameter parsing, and safe CLI patterns.
references/api-and-cloud-reference.md for local FastAPI routes, request schemas, environment variables, cloud wrapper classes, and deployment guidance.
references/troubleshooting.md for CLI/API/cloud/logging/deployment failure modes and routing decisions.
Default operating posture
- Prefer deterministic local CLI examples (
--chunker recursive, --chunker token, or --chunker sentence) unless the user explicitly selected semantic/model-backed chunking.
- Treat
chonkie serve and uvicorn chonkie.api.main:app as long-running commands: explain or run them only when the user asks for a server, and keep smoke checks to imports/help/schema inspection.
- Treat Chonkie Cloud as optional external API usage. Do not instantiate cloud clients in diagnostics unless
CHONKIE_API_KEY or an explicit api_key is intentionally provided.
- Keep local API credentials separate from provider credentials: the OSS FastAPI server has no built-in auth;
CHONKIE_API_KEY is for Chonkie Cloud; embedding provider keys belong to ../embeddings-and-generative/.
- For deployment, distill the Docker/compose behavior into guidance and environment requirements; do not require users to read or copy any source checkout file.
Safe smoke
Run the bundled smoke when validating an installed Chonkie environment:
python scripts/cli_api_smoke.py
If the chonkie console command is intentionally unavailable but Python imports should still be checked:
python scripts/cli_api_smoke.py --skip-cli
The smoke only invokes CLI help, imports/inspects the FastAPI app and schemas, and inspects cloud class signatures without starting a server or using credentials.
1---2name: interfaces-and-deployment3description: "Use Chonkie's CLI, local FastAPI API, Cloud wrappers, logging, and4 deployment surfaces safely."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/interfaces-and-deployment8 disco-role: operating9license: MIT10---1112# Interfaces and Deployment1314Use this sub-skill when the task is about Chonkie's command line interface, the local self-hosted FastAPI API, Chonkie Cloud wrappers, logging/configuration, or serving/deployment. It is optimized for safe local diagnostics and for constructing correct commands or HTTP/API payloads without starting long-lived services or using credentials by default.1516## Route first1718- For Python `Pipeline().fetch_from().process_with().chunk_with().refine_with().run()` workflows, read `../pipelines-and-processing/`.19- For deterministic local chunker behavior, chunk object fields, tokenizer details, or fallback chunker choice, read `../chunking-and-types/`.20- For model/provider embedding keys and third-party generative/provider credentials, read `../embeddings-and-generative/`.21- For vector database services, handshakes, and storage credentials, read `../integrations-and-storage/`.2223## Read the bundled references2425- `references/cli-reference.md` for installed `chonkie` commands, flags, parameter parsing, and safe CLI patterns.26- `references/api-and-cloud-reference.md` for local FastAPI routes, request schemas, environment variables, cloud wrapper classes, and deployment guidance.27- `references/troubleshooting.md` for CLI/API/cloud/logging/deployment failure modes and routing decisions.2829## Default operating posture30311. Prefer deterministic local CLI examples (`--chunker recursive`, `--chunker token`, or `--chunker sentence`) unless the user explicitly selected semantic/model-backed chunking.322. Treat `chonkie serve` and `uvicorn chonkie.api.main:app` as long-running commands: explain or run them only when the user asks for a server, and keep smoke checks to imports/help/schema inspection.333. Treat Chonkie Cloud as optional external API usage. Do not instantiate cloud clients in diagnostics unless `CHONKIE_API_KEY` or an explicit `api_key` is intentionally provided.344. Keep local API credentials separate from provider credentials: the OSS FastAPI server has no built-in auth; `CHONKIE_API_KEY` is for Chonkie Cloud; embedding provider keys belong to `../embeddings-and-generative/`.355. For deployment, distill the Docker/compose behavior into guidance and environment requirements; do not require users to read or copy any source checkout file.3637## Safe smoke3839Run the bundled smoke when validating an installed Chonkie environment:4041```bash42python scripts/cli_api_smoke.py43```4445If the `chonkie` console command is intentionally unavailable but Python imports should still be checked:4647```bash48python scripts/cli_api_smoke.py --skip-cli49```5051The smoke only invokes CLI help, imports/inspects the FastAPI app and schemas, and inspects cloud class signatures without starting a server or using credentials.