Providers
Model providers and plans supported by Letta Code
Letta API
Section titled “Letta API”The Letta API supports a wide range of model providers, including OpenAI, Anthropic, Google Gemini, zAI, and more (view the full list of available models). Users on a Letta Pro Plan or Letta Max Plan can directly access any model on the Letta API through their subscription, and pay for additional usage via pay-as-you-go credits (view usage page to configure auto top-up).
BYOK authentication
Section titled “BYOK authentication”You can also add your own LLM API provider keys via the /connect command.
This allows you to use your own API keys for the following providers:
- OpenAI
- Anthropic
- Google Gemini
- Z.ai
- Minimax
- OpenRouter
- Claude on Amazon Bedrock
- Azure OpenAI
- Together AI
You can also use Letta Code with existing OpenAI ChatGPT Pro/Plus plans (includes Codex usage), the zAI Coding Plan, and the Minimax Coding Plan.
Local mode providers
Section titled “Local mode providers”Local mode uses the same /connect flow, but stores provider configuration in the embedded local backend. This is useful when you want local agent state, local inference, or both.
Inside a local Letta Code session, run:
> /connectFrom the shell, pass --backend local before connect:
letta --backend local connect ollamaletta --backend local connect lmstudio --base-url http://127.0.0.1:1234/v1letta --backend local connect llama-cpp --base-url http://localhost:8080/v1Local mode can also use remote providers such as Anthropic, OpenAI, Gemini, OpenRouter, Bedrock, and ChatGPT/Codex. In that setup, agent state stays local, but prompts still go to the remote model provider.
ChatGPT Pro / Plus (Codex OAuth)
Section titled “ChatGPT Pro / Plus (Codex OAuth)”Connect your ChatGPT Pro / Plus subscription to use OpenAI models with your existing plan.
Authentication
Section titled “Authentication”Use the /connect command to authenticate with OpenAI:
> /connect chatgpt/connect codex remains supported as an alias.
This will open a browser window to authorize Letta Code with your OpenAI account.
Once connected, your ChatGPT Pro / Plus plan quota will be used for OpenAI models with the provider name chatgpt-pro-plus.
To disconnect from your OpenAI account, you can run:
> /disconnect chatgpt/disconnect codex remains supported as an alias.
zAI Coding Plan
Section titled “zAI Coding Plan”To connect your zAI Coding Plan, run:
> /connect zai-codingIf you want to use a standard zAI API key instead, run:
> /connect zaiMinimax Coding Plan
Section titled “Minimax Coding Plan”Connect your Minimax Coding Plan to use MiniMax models with your existing plan.
Authentication
Section titled “Authentication”Use the /connect command with your Minimax API key:
> /connect minimax <api_key>Once connected, your Minimax Coding Plan quota will be used for MiniMax models. To disconnect from your Minimax account, you can run:
> /disconnect minimax