/healthWait for the active model to finish loading.
Agent contract · v1
A precise operating manual for LLMs, coding agents, and automation that need private models, tool calls, images, video, or speech through Tapioca.
01 · Deterministic quickstart
The catalog—not memory—is the source of truth. Select the narrowest execution surface and leave the machine as you found it.
tapioca versionStop and install Tapioca if this command is unavailable.
tapioca list && tapioca catalog update && tapioca catalogRefresh verified recipes, then prefer an installed, task-compatible model.
tapioca pull MODELTell the user before a large model download. Never accept gated terms for them.
tapioca serve MODEL --host 127.0.0.1 --port 11435Keep the API on loopback and wait for /health.
POST /v1/responsesValidate model tool calls through the host agent's permissions.
stop the server you startedLeave unrelated local models and files untouched.
02 · Compatibility APIs
Start on http://127.0.0.1:11435, wait for health, then use the request shape your client already understands.
/healthWait for the active model to finish loading.
/v1/modelsConfirm the model exposed by this server.
/v1/chat/completionsOpenAI chat, streaming, and tool calls.
/v1/responsesOpenAI Responses input and function tools.
/v1/messagesAnthropic Messages and Claude Code compatibility.
curl http://127.0.0.1:11435/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer tapioca-local" \
-d '{
"model": "glm-4.7-flash:q8_0",
"messages": [
{"role": "user", "content": "Say hello in one sentence."}
],
"stream": false
}'03 · Tool calling
Models propose tool calls; Tapioca never executes them. Validate function names and arguments, apply the host's approval policy, return a matching tool result, and cap the loop.
{
"type": "function",
"function": {
"name": "read_project_file",
"description": "Read a UTF-8 file in the workspace",
"parameters": {
"type": "object",
"properties": {"path": {"type": "string"}},
"required": ["path"],
"additionalProperties": false
}
}
}04 · Bundle-aware media
Agents treat catalog IDs as bundle contracts. MiniMax-H3 resolves the correct MPS or CUDA bundle, while Tapioca privately owns the engine graph, adapter ordering, and output path.
MiniMax-H3 is subject to its community license, which excludes the US, EU, UK, and Republic of Korea absent separate authorization. An ungated download or local acknowledgement is not permission to use it there.
LoRA automation uses the provider-neutral library: list installed references first, inspect or pull from Hugging Face, Civitai, or ModelScope, and import existing files into a managed local reference.
For computer-to-computer migration, preserve complete adapter snapshots and rebuild copied base-model registration with tapioca pull MODEL. The import and transfer guidegives agents and humans the exact safe workflow.
tapioca catalog update && tapioca catalogRefresh verified recipes, then confirm platform, memory, and the exact model ID.
adapter listReuse its canonical reference when the required LoRA is already installed.
inspect / pull / importAcquire from Hugging Face, Civitai, ModelScope, or a verified local file.
ordered --adapterApply transformer LoRAs in command order; never infer compatibility by extension.
verify outputWait for exit, preserve the returned path, and inspect video plus audio streams.
gated modelStop for user review. Never accept provider terms or expose an access token on the user's behalf.
tapioca pull minimax-h3
tapioca adapter list
tapioca adapter inspect hf://OWNER/REPOSITORY
tapioca adapter inspect civitai://MODEL_ID/VERSION_ID
tapioca adapter import ./adapter.safetensors --base minimax-h3 --name local-adapter
tapioca video minimax-h3 \
--prompt "A cinematic tracking shot" \
--adapter 'local://local-adapter#adapter.safetensors@0.8' \
--preset low-memory \
--output adapted.mp405 · Coding clients
Tapioca creates isolated configuration under TAPIOCA_HOME/launch. The client must already be installed on the machine.
tapioca launch codex MODELtapioca launch claude MODELtapioca launch opencode MODELtapioca launch openclaw MODELtapioca launch hermes MODEL06 · Installable knowledge
The repository ships one Agent Skills-compatible package with both Codex and Claude Code manifests. Its use-tapioca skill includes model selection, APIs, media, safety rules, and a structured cross-platform helper.
Browse the plugin →Add the repository marketplace, then install the local-AI plugin.
codex plugin add tapioca-local-ai@personalTest directly from a checkout, then distribute through a Claude marketplace.
claude --plugin-dir ./plugins/tapioca-local-ai07 · Non-negotiables
Never expose an unauthenticated model server by accident.
Report size and memory before pulling a very large model.
Treat every model-produced call as an untrusted proposal.
Possessing an audio file does not imply permission to clone it.
Require the user to review and accept gated model terms themselves.