view source

Octomind LLM Providers and API Keys

skill

Octomind LLM providers: provider:model strings, API key and URL variables for OpenRouter, Ollama and others, local and CLI models, error texts.

Apache-2.0 Requires: octomind binary on PATH for checks. macOS/Linux/Windows.

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_KEY rule.
  • The default model is octohub:auto: the Octomind gateway. octomind login stores its key.
  • local: and ollama: 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.

PrefixKey variableURL override
octohubOCTOHUB_API_KEY (optional; octomind login writes it)OCTOHUB_API_URL (base URL)
chatgptnone; run octomind login chatgptnone
openaiOPENAI_API_KEYOPENAI_API_URL
anthropicANTHROPIC_API_KEYANTHROPIC_API_URL
openrouterOPENROUTER_API_KEYOPENROUTER_API_URL
google-studioGOOGLE_STUDIO_API_KEYGOOGLE_STUDIO_API_URL
google-vertexGOOGLE_VERTEX_CREDENTIAL_FILE, else GOOGLE_APPLICATION_CREDENTIALSGOOGLE_VERTEX_API_URL
amazonAWS_BEARER_TOKEN_BEDROCKAWS_BEDROCK_API_URL
cloudflareCLOUDFLARE_API_KEY and CLOUDFLARE_ACCOUNT_IDCLOUDFLARE_API_URL
alibabaALIBABA_API_KEYALIBABA_API_URL
byteplusBYTEPLUS_API_KEYBYTEPLUS_API_URL
cerebrasCEREBRAS_API_KEYCEREBRAS_API_URL
deepseekDEEPSEEK_API_KEYDEEPSEEK_API_URL
featherlessFEATHERLESS_API_KEYFEATHERLESS_API_URL
fireworksFIREWORKS_API_KEYFIREWORKS_API_URL
groqGROQ_API_KEYGROQ_API_URL
hetznerHETZNER_API_KEYHETZNER_API_URL
inceptionINCEPTION_API_KEYINCEPTION_API_URL
isoquantISOQUANT_API_KEYISOQUANT_API_URL
metaMETA_API_KEY, else MODEL_API_KEYMETA_API_URL
minimaxMINIMAX_API_KEYMINIMAX_API_URL
moonshotMOONSHOT_API_KEYMOONSHOT_API_URL
nvidiaNVIDIA_API_KEYNVIDIA_API_URL
opencode-zenOPENCODE_API_KEYOPENCODE_ZEN_API_URL
opencode-goOPENCODE_API_KEYOPENCODE_GO_API_URL
reflectionREFLECTION_API_KEYREFLECTION_API_URL
tinkerTINKER_API_KEYTINKER_API_URL
togetherTOGETHER_API_KEYTOGETHER_API_URL
webwrightWEBWRIGHT_API_KEYWEBWRIGHT_API_URL
xaiXAI_API_KEYXAI_API_URL
xiaomiXIAOMI_API_KEYXIAOMI_API_URL
zaiZAI_API_KEYZAI_API_URL
ollamaOLLAMA_API_KEY (optional)OLLAMA_API_URL
localLOCAL_API_KEY (optional)LOCAL_API_URL
clinone; the backend tool signs in by itselfnone

That is 34 providers plus the cli meta-provider, 35 prefixes in all.

Extra variables:

  • google-vertex: GOOGLE_VERTEX_PROJECT_ID and GOOGLE_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_REFERER and OPENROUTER_APP_CATEGORIES. Octomind fills them in with its own defaults when unset.
  • alibaba, deepseek, isoquant, local, minimax, moonshot, tinker, xiaomi, zai also read <PREFIX>_API_MODE, which must be anthropic or openai. Without it the URL path decides: a path ending in /messages means Anthropic style, /chat/completions means OpenAI style.
  • local also reads LOCAL_ANTHROPIC_MODELS, a comma-separated list of model names that speak the Anthropic protocol.

Aliases and rejected prefixes

  • kimi: is an alias of moonshot: and reads MOONSHOT_API_KEY.
  • google: is rejected. Use google-studio: or google-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-go and chatgpt accept 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, xiaomi and zai check the name against a built-in table. A name outside it fails with does not support model. The fix is a name that provider lists, or the same model through openrouter, octohub or local.
  • cloudflare, google-studio and google-vertex check a fetched model list only once it is loaded.

Local and self-hosted models

  • local: defaults to http://localhost:11434/v1/chat/completions. Set LOCAL_API_URL to the full endpoint of any OpenAI-compatible server.
  • ollama: defaults to https://ollama.com/v1/chat/completions, the hosted service. For a server on your machine set OLLAMA_API_URL to its full endpoint, or use local:.
  • openai: talks to the Responses API. A server that only offers Chat Completions needs local:.
  • Both URL variables take the full path, not just the host.
  • cli:<backend>/<model> runs an installed tool. Known backends are codex, claude, cursor and gemini; claude-code, cursor-agent, gemini-cli and codex-cli map to them. The command defaults to the backend name (cursor-agent for cursor). Override it with CLI_<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 for cli.

Where keys live

  • Load order, later wins: the process environment, then the user file <data-dir>/config/.env, then ./.env in the working directory. Both files override the shell.
  • The data directory is OCTOMIND_DATA_DIR or the default under the home directory. OCTOMIND_CONFIG_PATH does not move the user .env.
  • octomind login writes OCTOHUB_API_KEY to the user .env. octomind configure writes the key you type there too. Both need no hand editing.
  • octomind config --api-key provider:key refuses to save. Its message is API keys can no longer be set in config file for security reasons.
  • A blank assignment in a later .env still replaces an earlier value, and Octomind then reports the variable as not set.

Checking that a key is seen

  • octomind config --show lists 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 only GOOGLE_VERTEX_CREDENTIAL_FILE is set.
  • The Amazon row looks at AWS_ACCESS_KEY_ID, which Bedrock does not use. Judge Bedrock by AWS_BEARER_TOKEN_BEDROCK.
  • octomind configure ends with a summary whose key row says where the key was found or which variable to set, for the main and compression models. It needs a terminal.
  • octomind vars shows prompt placeholders only. It does not show keys.
  • octomind config --validate checks model names, not keys or accounts.

Choosing a model

  • One run: octomind run -m 'provider:model'.
  • Inside a session: /model provider:model.
  • Global default: name in [model] of config.toml.
  • One role: [roles.model] with a name, or model = "provider:model" on the role.
  • One tap agent, name only: an entry in [taps].
  • Compression: [compression.model]. Changing [model] alone leaves compression on octohub:auto.
  • Order, highest first: run or /model override, role model, [taps] entry, [model].
  • [capabilities] picks tool providers, not models.
  • Octomind sends an X-Model-Purpose header, main or compression. Only the OctoHub gateway uses it, to route octohub:auto.

Common errors

TextMeaning 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_KEYExport 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 .env is 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-config for [model], [roles.model] and [compression.model], and with octomind-cli for commands and flags.