OneProvider
Clients and SDKs

Factory

Add OneProvider to Factory Droid as a custom Anthropic-compatible model in ~/.factory/settings.json and assign it to your droids. Config example inside.

Factory Droid is a coding-agent CLI. Add OneProvider as a custom Anthropic-compatible model in ~/.factory/settings.json.

All models, capabilities, and prices Documentation index for AI agents: https://oneprovider.dev/docs/llms.txt Before you start: a key from your cabinet Open your cabinet: the Telegram bot @oneprovider_robot (Account) or app.oneprovider.dev . Press “Issue a key”, give it a name (for example, this client) and a spend limit, and copy the key. You top up the balance in the same place. More about the cabinet and keys .

Configure

Factory Droid keeps bring-your-own-key models in ~/.factory/settings.json. Edit the file, or use the editor in droid (/settings → Custom models, or /model → Manage custom models); personal custom models work in the CLI and the desktop app, not in Factory’s web or mobile apps. Add a model to the customModels array; keep baseUrl without /v1, because the anthropic provider appends /v1/messages itself.

json
{
"customModels": [
{
"model": "claude-sonnet-5-5",
"displayName": "OneProvider claude-sonnet-5-5",
"baseUrl": "https://api.oneprovider.dev",
"apiKey": "sk-your-key-here",
"provider": "anthropic",
"maxOutputTokens": 8192
}
]
}

Add more entries with a different model for other Claude models. Then run /model in droid and pick the model under Custom models.

Assign models to droids

A custom droid (/droids, files in .factory/droids/) uses the session model by default (model: inherit). To pin a OneProvider model for a droid, put model: custom:claude-sonnet-5-5 in its frontmatter: custom: plus the model field of the entry, not its display name. Use claude-sonnet-5-5 as the practical default or claude-opus-5-5 for architecture-heavy work. A droid that names a model you have not added falls back to the session model.

Token accounting Droid’s own cost view (/cost) is an estimate. The amount actually charged is the per-request usage the API returns, listed on the dashboard Usage page; if the numbers differ, trust the dashboard.

Which model to choose

Add one customModels entry per model. claude-sonnet-5-5 is the practical default for droids; use claude-opus-5-5 for architecture-heavy work and claude-haiku-5-5 for fast, cheap droids. Keep provider as "anthropic". Ids are on the models page , rates on the pricing page .

Common errors and fixes

404 or “Requested model was not found on the API provider”

baseUrl must be https://api.oneprovider.dev without /v1: the anthropic provider appends /v1/messages itself.

401

The key in the entry is truncated or has a stray quote. Paste the whole key.

The model is missing in /model

Save ~/.factory/settings.json (valid JSON, no smart quotes) and reopen droid; custom entries appear under Custom models.

429 “Insufficient balance”

Balance or key limit is used up. Top up the cabinet.

FAQ

Is there a UI for providers?

In droid, yes: /settings → Custom models or /model → Manage custom models (the desktop app has Settings → Custom Models). There is no web UI; the entries are stored in ~/.factory/settings.json.

Can I add several models?

Yes, add one object per model to the array; the same key works for all.

Can I use GPT models?

Yes, with the same key: add an entry with provider "openai" (Responses API) or "generic-chat-completion-api" (Chat Completions), baseUrl https://api.oneprovider.dev/v1 (here with /v1) and a GPT id such as gpt-6.1-terra.

Where do I see cost?

In the dashboard Usage page for the key.

Quick answers

Which base URL do I use?

Claude Code and Anthropic SDKs use https://api.oneprovider.dev. OpenAI SDKs and OpenAI-compatible clients use https://api.oneprovider.dev/v1. One key works behind both; the model list is on the models page ; rates are on the pricing page .

How do I authenticate?

Send the raw sk-… key in x-api-key or Authorization: Bearer: one of them, never both. Keep the key in an environment variable, not in a file that gets committed. More on authentication .

Where do I get a key?

Open your cabinet in the Telegram bot @oneprovider_robot or at app.oneprovider.dev, top up the balance and press “Issue a key”. Each key can carry its own spend limit. Cabinet & API keys .

What do 401, 404 and 429 mean?

401: the key is missing, mistyped or sent in the wrong header; paste the whole key without quotes or spaces. 404: usually a wrong base URL, for example a missing or doubled /v1. 429 with “Insufficient balance”: the cabinet balance or the key’s spend limit is used up, so top up instead of retrying; any other 429 is a rate limit, so wait for Retry-After. Details: error codes and troubleshooting .

Why do streams cut off or reset?

VPN and VLESS proxies often buffer SSE or break HTTP/2 negotiation. OneProvider has no regional restrictions and does not buffer streams, so turn the proxy off and retry.

Where do I ask if this is not enough?

Message @Oneproviderhelpbot on Telegram or open “Support” in the web cabinet, with the HTTP status code and the exact error message. How support works .

Last updated: 2026-11-28 Found a bug? @Oneproviderhelpbot