# LLM Providers Morphy doesn't ship its own model — you connect your own provider account and use your own API key. You can configure several providers and switch between them at any time. ## Supported providers | Provider | `--provider` name | | --- | --- | | Anthropic | `anthropic` | | OpenAI | `openai` | | OpenAI Codex (ChatGPT coding plan) | `openai-code` | | Google (Gemini) | `google` | | OpenRouter | `openrouter` | | z.ai | `z.ai` | | Chutes | `chutes` | | Moonshot | `moonshot` | | MiniMax | `minimax` | | Auto (pick an available one) | `auto` | ## Add a provider (interactive) Open the provider manager: ``` /providers ``` Highlight a provider, press `A` to add an account, then set the key. For Anthropic: ``` /secrets unlock my-passphrase /provider set-key anthropic main sk-ant-your-key-here /provider use anthropic main /model ``` For any other key‑based provider it's the same shape: ``` /provider account add openrouter main /provider set-key openrouter main sk-or-your-key-here /provider use openrouter main ``` ### Browser / OAuth login Some providers support signing in through your browser instead of pasting a key: ``` /provider login openai main browser ``` Morphy opens a browser window; after you log in, the token is saved automatically. ### Custom or self‑hosted endpoint Point a provider at a proxy or self‑hosted, OpenAI‑compatible endpoint: ``` /provider set-base-url openai main https://my-proxy.example.com/v1 ``` ## Choosing a model Open the searchable model picker: ``` /model ``` - Type to search across provider and model names. - Capability hints show which models support `vision` or `video`. - Press `Enter` to stage a choice, then **Use selected** to apply it. - Picking a model from another configured provider switches to that provider too. Set a model directly with `/model `, or start Morphy with `-m ` and `-p `. ## Using environment variables instead If you'd rather not use the vault, export a key before launching. Common variables: | Provider | Variable | | --- | --- | | Anthropic | `ANTHROPIC_API_KEY` | | OpenAI | `OPENAI_API_KEY` | | Google | `GOOGLE_API_KEY` | | OpenRouter | `OPENROUTER_API_KEY` | | z.ai | `ZAI_API_KEY` | | Chutes | `CHUTES_API_KEY` | | Moonshot | `MOONSHOT_API_KEY` | | MiniMax | `MINIMAX_API_KEY` | ```bash export ANTHROPIC_API_KEY=sk-ant-your-key-here morphy ``` Each provider also accepts a matching `*_BASE_URL` and `*_MODEL` variable to override the endpoint and default model. Run `morphy --help` to see the full list. ## Checking what's active ``` /provider list ``` Prints the current provider, account, model, base URL, and how you're authenticated — handy when something isn't using the account you expect.