What a model provider configures
Each provider stores three values:- Name — a label you choose to identify the provider in the UI
- API base URL — the endpoint your agent sends requests to (e.g.,
http://localhost:11434/v1for Ollama) - API key — the credential for that endpoint, stored securely in your machine’s OS keyring
Adding a provider
Enter provider details
Fill in the following fields:
| Field | Description |
|---|---|
| Name | A descriptive label, e.g., “Local Ollama” or “Azure OpenAI” |
| API base URL | The full base URL of the API endpoint |
| API key | Your API key or bearer token for this endpoint |
Select agent types
Toggle the agents that should use this provider. You can assign a provider to one or more of: Claude Code, Codex CLI, Gemini CLI, OpenClaw, OpenCode, Cline.
Editing a provider
Click the pencil icon next to a provider to open the edit dialog. You can update the name, API URL, API key, and the agent types list. Changes take effect the next time an agent connects.Assigning a provider to an agent
After creating a provider, go to Settings → Agents, select the agent, and choose the provider from the Model Provider dropdown. The agent will then route its API calls through the configured URL and use the stored API key.Removing a provider
Click the trash icon next to a provider to delete it. If any agents are currently assigned to that provider, Codeg blocks the deletion and tells you which agents are affected. Reassign those agents to a different provider first, then delete.Use cases
- Self-hosted models
- Alternative cloud providers
Point agents at a local inference server running Ollama or LM Studio. Use the server’s OpenAI-compatible endpoint as the API base URL and leave the API key empty or use a placeholder value.
API keys are stored in your OS keyring and are never written to Codeg’s configuration files or database. Keys are retrieved from the keyring at connection time.