Octomind LLM Providers and API Keys
skillOctomind LLM providers: provider:model strings, API key and URL variables for OpenRouter, Ollama and others, local and CLI models, error texts.
agents that use this skill
instructions
Overview
Octomind sends model requests through a provider library. A model is named by one string, provider:model. This skill answers four kinds of question: which providers exist, how to write the name, which key or URL variable a provider reads, and why a name or key is rejected. It quotes the prefixes, variable names and error texts the code produces.
It does not give prices, model catalogs, context-window sizes or advice on which model is best. Send the user to the provider's own pages or to https://octomind.run for those.
Mental model
- The text before the first colon picks the provider. Everything after it is passed on as the model name, so the name may hold colons and slashes (
ollama:llama3:8b,openrouter:vendor/model). - The prefix is trimmed and matched without regard to case. An empty prefix or an empty model name is rejected.
- Credentials come from environment variables. A key never lives in
config.toml. - Each provider reads its own variable names. There is no universal
<PREFIX>_API_KEYrule. - The default model is
octohub:auto: the Octomind gateway.octomind loginstores its key. local:andollama:need no key.cli:<backend>/<model>runs an installed command-line tool.
Rules
Providers, keys and URL variables
Every <PREFIX>_API_URL variable replaces the provider's default request URL as given, except OCTOHUB_API_URL, which takes a base URL. A key marked optional may be absent.
| Prefix | Key variable | URL override |
|---|---|---|
octohub | OCTOHUB_API_KEY (optional; octomind login writes it) | OCTOHUB_API_URL (base URL) |
chatgpt | none; run octomind login chatgpt | none |
openai | OPENAI_API_KEY | OPENAI_API_URL |
anthropic | ANTHROPIC_API_KEY | ANTHROPIC_API_URL |
openrouter | OPENROUTER_API_KEY | OPENROUTER_API_URL |
google-studio | GOOGLE_STUDIO_API_KEY | GOOGLE_STUDIO_API_URL |
google-vertex | GOOGLE_VERTEX_CREDENTIAL_FILE, else GOOGLE_APPLICATION_CREDENTIALS | GOOGLE_VERTEX_API_URL |
amazon | AWS_BEARER_TOKEN_BEDROCK | AWS_BEDROCK_API_URL |
cloudflare | CLOUDFLARE_API_KEY and CLOUDFLARE_ACCOUNT_ID | CLOUDFLARE_API_URL |
alibaba | ALIBABA_API_KEY | ALIBABA_API_URL |
byteplus | BYTEPLUS_API_KEY | BYTEPLUS_API_URL |
cerebras | CEREBRAS_API_KEY | CEREBRAS_API_URL |
deepseek | DEEPSEEK_API_KEY | DEEPSEEK_API_URL |
featherless | FEATHERLESS_API_KEY | FEATHERLESS_API_URL |
fireworks | FIREWORKS_API_KEY | FIREWORKS_API_URL |
groq | GROQ_API_KEY | GROQ_API_URL |
hetzner | HETZNER_API_KEY | HETZNER_API_URL |
inception | INCEPTION_API_KEY | INCEPTION_API_URL |
isoquant | ISOQUANT_API_KEY | ISOQUANT_API_URL |
meta | META_API_KEY, else MODEL_API_KEY | META_API_URL |
minimax | MINIMAX_API_KEY | MINIMAX_API_URL |
moonshot | MOONSHOT_API_KEY | MOONSHOT_API_URL |
nvidia | NVIDIA_API_KEY | NVIDIA_API_URL |
opencode-zen | OPENCODE_API_KEY | OPENCODE_ZEN_API_URL |
opencode-go | OPENCODE_API_KEY | OPENCODE_GO_API_URL |
reflection | REFLECTION_API_KEY | REFLECTION_API_URL |
tinker | TINKER_API_KEY | TINKER_API_URL |
together | TOGETHER_API_KEY | TOGETHER_API_URL |
webwright | WEBWRIGHT_API_KEY | WEBWRIGHT_API_URL |
xai | XAI_API_KEY | XAI_API_URL |
xiaomi | XIAOMI_API_KEY | XIAOMI_API_URL |
zai | ZAI_API_KEY | ZAI_API_URL |
ollama | OLLAMA_API_KEY (optional) | OLLAMA_API_URL |
local | LOCAL_API_KEY (optional) | LOCAL_API_URL |
cli | none; the backend tool signs in by itself | none |
That is 34 providers plus the cli meta-provider, 35 prefixes in all.
Extra variables:
google-vertex:GOOGLE_VERTEX_PROJECT_IDandGOOGLE_VERTEX_LOCATION.amazon:AWS_BEDROCK_REGION. It reads a Bedrock bearer token, not AWS access keys.alibaba:ALIBABA_WORKSPACE_ID.openrouter:OPENROUTER_APP_TITLE,OPENROUTER_HTTP_REFERERandOPENROUTER_APP_CATEGORIES. Octomind fills them in with its own defaults when unset.alibaba,deepseek,isoquant,local,minimax,moonshot,tinker,xiaomi,zaialso read<PREFIX>_API_MODE, which must beanthropicoropenai. Without it the URL path decides: a path ending in/messagesmeans Anthropic style,/chat/completionsmeans OpenAI style.localalso readsLOCAL_ANTHROPIC_MODELS, a comma-separated list of model names that speak the Anthropic protocol.
Aliases and rejected prefixes
kimi:is an alias ofmoonshot:and readsMOONSHOT_API_KEY.google:is rejected. Usegoogle-studio:orgoogle-vertex:.inception:still works but is marked deprecated in the provider library.- Any other prefix fails with
Unsupported provider.
Model names
octohub,local,ollama,openrouter,groq,together,fireworks,nvidia,featherless,byteplus,alibaba,amazon,isoquant,tinker,opencode-zen,opencode-goandchatgptaccept any non-empty name. The provider or gateway decides later whether it exists.anthropic,openai,cerebras,deepseek,hetzner,inception,meta,minimax,moonshot,reflection,webwright,xai,xiaomiandzaicheck the name against a built-in table. A name outside it fails withdoes not support model. The fix is a name that provider lists, or the same model throughopenrouter,octohuborlocal.cloudflare,google-studioandgoogle-vertexcheck a fetched model list only once it is loaded.
Local and self-hosted models
local:defaults tohttp://localhost:11434/v1/chat/completions. SetLOCAL_API_URLto the full endpoint of any OpenAI-compatible server.ollama:defaults tohttps://ollama.com/v1/chat/completions, the hosted service. For a server on your machine setOLLAMA_API_URLto its full endpoint, or uselocal:.openai:talks to the Responses API. A server that only offers Chat Completions needslocal:.- Both URL variables take the full path, not just the host.
cli:<backend>/<model>runs an installed tool. Known backends arecodex,claude,cursorandgemini;claude-code,cursor-agent,gemini-cliandcodex-climap to them. The command defaults to the backend name (cursor-agentforcursor). Override it withCLI_<BACKEND>_COMMAND; the backend name is upper case. Further knobs:CLI_<BACKEND>_EXTRA_ARGS,CLI_<BACKEND>_MODEL_FLAG(default-m),CLI_<BACKEND>_PROMPT_FLAG(default-p). Octomind skips its key check forcli.
Where keys live
- Load order, later wins: the process environment, then the user file
<data-dir>/config/.env, then./.envin the working directory. Both files override the shell. - The data directory is
OCTOMIND_DATA_DIRor the default under the home directory.OCTOMIND_CONFIG_PATHdoes not move the user.env. octomind loginwritesOCTOHUB_API_KEYto the user.env.octomind configurewrites the key you type there too. Both need no hand editing.octomind config --api-key provider:keyrefuses to save. Its message isAPI keys can no longer be set in config file for security reasons.- A blank assignment in a later
.envstill replaces an earlier value, and Octomind then reports the variable as not set.
Checking that a key is seen
octomind config --showlists key rows for OpenRouter, OpenAI, Anthropic, Google, Amazon, Cloudflare, Octomind (signed in) and Local. It does not cover other providers.- The Google row looks only at
GOOGLE_APPLICATION_CREDENTIALS, so it shows missing when onlyGOOGLE_VERTEX_CREDENTIAL_FILEis set. - The Amazon row looks at
AWS_ACCESS_KEY_ID, which Bedrock does not use. Judge Bedrock byAWS_BEARER_TOKEN_BEDROCK. octomind configureends with a summary whosekeyrow says where the key was found or which variable to set, for the main and compression models. It needs a terminal.octomind varsshows prompt placeholders only. It does not show keys.octomind config --validatechecks model names, not keys or accounts.
Choosing a model
- One run:
octomind run -m 'provider:model'. - Inside a session:
/model provider:model. - Global default:
namein[model]ofconfig.toml. - One role:
[roles.model]with aname, ormodel = "provider:model"on the role. - One tap agent, name only: an entry in
[taps]. - Compression:
[compression.model]. Changing[model]alone leaves compression onoctohub:auto. - Order, highest first: run or
/modeloverride, role model,[taps]entry,[model]. [capabilities]picks tool providers, not models.- Octomind sends an
X-Model-Purposeheader,mainorcompression. Only the OctoHub gateway uses it, to routeoctohub:auto.
Common errors
| Text | Meaning and fix |
|---|---|
Invalid model format 'x'. Must specify provider like 'provider:model' | No colon. Write provider:model. |
Invalid model format. Use 'provider:model' (e.g., 'openai:gpt-4o') | The prefix or the name is empty. |
Unknown provider 'x': Unsupported provider: x. Supported: ... | The prefix is not in the table above. |
Provider 'groq' credentials missing: API key not found for provider groq: set GROQ_API_KEY | Export the variable, or add it to a .env. |
Provider 'openai' credentials missing: Using OAuth authentication. API key not available when OPENAI_OAUTH_ACCESS_TOKEN is set. | Unset that variable (also ANTHROPIC_OAUTH_ACCESS_TOKEN for anthropic) and use the key. |
Provider 'openai' does not support model 'x' | Name is not in that provider's table. See Model names. |
... .name 'x:y' is invalid: ... | Config validation wrapped one of the errors above. Read the text after invalid:. |
Not signed in with ChatGPT (no credentials at ...) | Run octomind login chatgpt. |
OctoHub API error 401: ... run octomind login ... | Run octomind login; octomind login --force replaces a stored key. |
Invalid cli model format. Use 'cli:<backend>/<model>' ... | Write cli:<backend>/<model>. |
CLI command not found at '...'. Set CLI_<BACKEND>_COMMAND to a valid path. | Install the tool or set that variable. |
Configuration error: ALIBABA_API_MODE must be `anthropic` or `openai`, got `x` | Same rule for every <PREFIX>_API_MODE. |
Other providers phrase a missing key their own way: Anthropic, OpenAI, Google AI Studio, Meta, Amazon Bedrock, Cloudflare and Vertex name the variable in the message. Read that name and set it.
Examples
Bad: a user sets GOOGLE_API_KEY and writes google:gemini-model. The prefix is rejected and the variable is not read.
Good: google-studio:<model> with GOOGLE_STUDIO_API_KEY exported.
Bad: ollama:llama3 with a server on the same machine. It goes to the hosted service.
Good: export OLLAMA_API_URL="http://localhost:11434/v1/chat/completions", or local:llama3 with no variable.
Bad: export LOCAL_API_URL="http://127.0.0.1:8080". The path is missing.
Good: export LOCAL_API_URL="http://127.0.0.1:8080/v1/chat/completions".
Bad: the user changes [model] to openai:<model> and still sees gateway traffic. Compression keeps octohub:auto.
Good: set [compression.model] too.
Checklist
- The name has both parts:
provider:model. - The prefix appears in the table or is
kimi. - The answer names the exact variable for that prefix, including the shared and fallback ones.
- URL variables carry a full endpoint, except
OCTOHUB_API_URL. - A later
.envis not hiding an exported key. - Compression and role models were considered, not only
[model]. - No price, catalog or "best model" claim was made.
- No real key value was written or requested.
References
- Octomind docs:
doc/usage/04-providers.md(providers guide),doc/reference/04-environment-variables.md(variables),doc/usage/03-configuration.md(model profiles). The same pages are served at https://octomind.run/docs/. When they differ from the binary, the binary wins: the guide's provider table lags the provider library. - Pairs with
octomind-configfor[model],[roles.model]and[compression.model], and withoctomind-clifor commands and flags.