Two familiar API dialects
The optional local API server binds to 127.0.0.1 only and is off by default. It serves compatible installed models using OpenAI and Anthropic API dialects.
| Route | Purpose |
|---|---|
GET /v1/models | List available local models |
POST /v1/chat/completions | OpenAI chat completions dialect |
POST /v1/messages | Anthropic messages dialect |
POST /v1/messages/count_tokens | Count tokens for the Anthropic dialect |
This is support for specific dialects and routes, not a claim that every feature of either provider’s API is implemented. The calling client executes its own tools; the local server returns the model’s tool requests.
Connect a client
- Download a compatible model and confirm it works in Chat.
- Open Settings → Coding Agents and enable the local server.
- Copy the base URL shown in Settings. The default is
http://127.0.0.1:8765; your configured port may differ. - If API-key protection is enabled, use the token shown in Settings. Some OpenAI-compatible clients expect a base URL ending in
/v1; follow the client’s own endpoint format. - Select an installed model and try a short request before a larger task.
curl http://127.0.0.1:8765/v1/models
curl http://127.0.0.1:8765/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "mlx-community/Qwen3-14B-4bit",
"messages": [{"role": "user", "content": "Explain unified memory in two sentences."}]
}'
curl http://127.0.0.1:8765/v1/messages \
-H "Content-Type: application/json" \
-d '{
"model": "mlx-community/Qwen3-14B-4bit",
"max_tokens": 256,
"messages": [{"role": "user", "content": "Explain unified memory in two sentences."}]
}'
# OpenAI-compatible clients (note /v1 suffix where required)
export OPENAI_BASE_URL="http://127.0.0.1:8765/v1"
export OPENAI_API_KEY="your-local-token-if-enabled"
# Anthropic-compatible clients
export ANTHROPIC_BASE_URL="http://127.0.0.1:8765"
export ANTHROPIC_API_KEY="your-local-token-if-enabled"
Clients such as Claude Code, opencode, Continue, Zed and aider have different configuration requirements. Confirm that your client supports a custom endpoint and the dialect you plan to use. Tool calling, context handling and output quality depend on the model and client.
Connect tools over remote MCP
Prylo supports remote Model Context Protocol servers using Streamable HTTP. Browse the official registry in the app or add a server URL. Local stdio servers cannot run inside the app’s sandbox.
MCP tools connect to the servers you select. Tool arguments can include conversation information; only connect services you intend to use. Third-party bearer tokens are kept in the login Keychain. Fully Offline mode removes network tools from the model’s available tools.
Adapt a supported model
Train LoRA or DoRA adapters on your Mac using your own examples. Adapters are stored separately from the base model weights. Fine-tuning support depends on the architecture; vision models are not supported for this training path.
Training needs additional memory for gradients and working state. A model that fits for chat may still be too large to train. Start with a small, compatible model and inspect your training data before beginning.
Everything starts with fit.
Use Advisor to check your hardware, then follow the local model setup guide.