> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oqoqo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Model providers

> Connect the API keys, gateways, and personal subscriptions that give agents and Oqoqo AI features their models.

You bring your own models. The providers you connect give models to the agents that do your tasks and to the Oqoqo AI features: the Evals model, Insights model, Experiment insights model, and Ask Oqo model. Connecting a provider is step 2 of the [setup checklist](https://docs.oqoqo.ai/setup/organization.md#setup-checklist).

## How providers work

```mermaid theme={null}
flowchart LR
  A["Organization settings → Model providers<br/>(Shared with organization)"] --> C["Models"]
  B["Profile → Integrations<br/>(Private to you)"] --> C
  C --> D["Manage → Agents"]
  C --> E["Oqoqo AI features"]
```

* **Shared with organization**: an API key or gateway added under **Organization settings → Model providers**. Every member uses it.
* **Private to you**: a personal subscription connected under **Profile → Integrations**. Only your runs use it.

Every project lists the same providers. Each connection lists only the models its provider reports, and you can't add other model IDs. An agent also lists only models that serve a model API it supports (OpenAI Responses, OpenAI Chat Completions, or Anthropic Messages), so one gateway can show a model to one agent and not to another ([Which providers each agent uses](https://docs.oqoqo.ai/setup/agents.md#which-providers-each-agent-uses)).

> [!NOTE]
>
> [Oqoqo runs](https://docs.oqoqo.ai/setup/billing.md) pay for the platform. Your providers bill model use separately, and Oqoqo doesn't track that spend.

## Connect a provider

1. Open **Organization settings → Model providers**.
2. Find the provider and select **Connect** on its row. For your own gateway or a self-hosted API, select **Add any OpenAI-compatible provider**, or open the menu beside it and select **Add any Anthropic-compatible provider**.
3. Enter its API key, and a base URL if the provider needs one.
4. Select **Save changes**. Oqoqo reads the provider's model list right away.
5. Turn on the agents that use it under [Manage → Agents](https://docs.oqoqo.ai/setup/agents.md).

For a personal subscription, select **Connect** on its row under [Profile → Integrations](https://docs.oqoqo.ai/setup/profile.md#integrations).

## Provider list

The list shows each provider's access tag and connection state. A connected **Shared with organization** row shows **API key**, and a connected **Private to you** row shows your account, such as your email and plan.

![Organization settings Model providers list with search, Add any OpenAI-compatible provider, and provider rows with access tags and model counts.](https://mintcdn.com/oqoqo/YO1ysyUx4SPwBwoz/images/screenshots/model-providers-light.png?fit=max\&auto=format\&n=YO1ysyUx4SPwBwoz\&q=85\&s=0945de4f58e23ccfd0f475e082e1c08c)

Rows that need attention come first, then connected rows. **Filters** narrows the list:

* **Status**: **Connected**, **Needs attention** (the connection is saved but needs a fix, such as **Sign in again**), or **Not connected**.
* **Access**: **Shared with organization** or **Private to you**.

## Organization providers

Add these under **Organization settings → Model providers**.

| Provider | What you enter | Notes |
| - | - | - |
| **OpenAI** | API key | OpenAI models for Codex, other agents, and Oqoqo AI features |
| **Anthropic** | API key | Claude models for Claude Code, other agents, and Oqoqo AI features |
| **Cursor** | API key | Runs the Cursor agent only. Needs a paid plan key (Pro, Pro+, Ultra, Teams, or Enterprise); a free Hobby key doesn't work. |
| **xAI** | API key | Grok models. Grok Build can search the web only through an xAI API key. |
| **Google Gemini API** | API key | Gemini models. The only provider for Antigravity. |
| **Alibaba Cloud Model Studio** | API key and regional base URL | Use a pay-as-you-go key. Alibaba prohibits automated use of Coding Plan and Token Plan keys. |
| **DeepSeek API** | API key | |
| **Kimi API** | API key | Use a global key from `platform.kimi.ai`. Kimi Membership, Kimi Code, and mainland China keys don't work. |
| **Meta Model API** | API key | |
| **MiniMax API** | API key and base URL | Use the international or mainland China base URL that matches the key. Use pay-as-you-go: Token Plan can throttle automated traffic. |
| **OpenRouter** | API key | Many models through one key. Claude Code uses only its `anthropic/claude…` models. |
| **Vercel AI Gateway** | API key | Many models through one key |
| **Cloudflare AI Gateway** | API token and account AI API root | The token needs **Account → Workers AI → Read**. Accepts Cloudflare's `cf-aig-*` request headers. Cloudflare logs prompts and responses by default. |
| **GMI Cloud** | API key | Many models through one key. Accepts the optional `X-Organization-ID` header. |
| **OpenCode Zen** | OpenCode API key | OpenCode's pay-as-you-go gateway |
| **OpenCode Go** | OpenCode API key | OpenCode's subscription gateway |
| **Any OpenAI-compatible provider** | Base URL and API key | Your own gateway or a self-hosted OpenAI-compatible API. You can add more than one. |
| **Any Anthropic-compatible provider** | Base URL and API key | Your own gateway or an Anthropic-compatible API. You can add more than one. |

## Personal integrations

Each member connects their own under **Profile → Integrations**, and Oqoqo uses the account of the person who starts the work. [Profile and API keys](https://docs.oqoqo.ai/setup/profile.md#integrations) lists the plan each needs.

| Integration | Powers |
| - | - |
| **GitHub** | GitHub Copilot |
| **OpenAI (ChatGPT Subscription)** | Codex, and Oqoqo AI features |
| **Anthropic (Claude Subscription)** | Claude Code, Evals, and Insights |
| **Nous Portal** | Hermes, and Oqoqo AI features |

## Turn off or refresh models

Open a provider to see its model table. Turn a model off to hide it from agents and Oqoqo AI features.

Oqoqo reads the model list when you connect or save a provider, and again once it's a day old. To read it now, select **Refresh models** on the provider or **Refresh all models** on the list. A model the provider stops listing drops off until the provider lists it again.

When a refresh adds or removes models, or a list stops refreshing, the other people who use it get an in-app [notice](https://docs.oqoqo.ai/setup/notifications.md).

## Set the context window for a model

A model's context window is how many tokens it can read at once. Oqoqo uses it to size what Evals and Insights read and to set up agents such as Pi and OpenClaw. Custom gateways, such as a self-hosted proxy, often don't state it. Without a window, Evals and Insights read up to 128K tokens, and Ask Oqo can't use the model.

1. Open the provider under **Organization settings → Model providers**.
2. In the model table, select the pencil button in the **Context** column.
3. Enter the window in tokens and select **Save**. **Clear** removes your value.

A window you set shows **Set by your organization**, and applies only while the provider states none. You can set windows only on organization providers, and personal integrations always use their provider's windows.

> [accordion] Suggested windows from public catalogs
>
> When OpenRouter or Models.dev lists exactly one window for the same model ID, the table shows **Suggested** under **Not available**. The editor fills it in and names the catalog. Check it against your endpoint, which can allow less, then select **Save**. Oqoqo never uses a suggestion until you save it.

From the CLI or the plugin, send `set_model_context_windows` to `oqoqo project ai apply` or `manage_project_ai`. A `null` value clears a window:

```bash theme={null}
oqoqo project ai apply --operation '{"action":"set_model_context_windows","connectionId":"aic_51be0c9a3f2d4e6b8a7c1d20","models":[{"modelId":"aim_3a91c7e2b4d6f8a0c2e4f6a8","contextWindowTokens":500000}]}'
```

`oqoqo project ai inspect --view models` shows each model's `contextWindowTokens`, `contextWindowSource`, and any `suggestedContextWindow`.

## Fix a provider that needs attention

A row shows **Needs attention** when its connection is saved but can't run models, for example after a personal sign-in expires. Open the row and follow its fix, such as **Sign in again**. Until a provider works, every dashboard page shows a [banner with the fix](https://docs.oqoqo.ai/reference/troubleshooting.md#every-page-shows-a-model-provider-banner).

## From the CLI and the plugin

The CLI and the plugin read providers and models, refresh lists, turn models on or off, and set context windows. You enter keys and sign in only in the dashboard, so for those steps the CLI and the plugin return a dashboard link.

| Task | CLI | Plugin (MCP) |
| - | - | - |
| List providers, with `access` and `connectionState` | [`oqoqo project ai inspect --view providers`](https://docs.oqoqo.ai/cli/agents-and-models#oqoqo-project-ai-inspect) | [`inspect_project_ai`](https://docs.oqoqo.ai/mcp-server/tools#inspect_project_ai) |
| List a provider's models | [`oqoqo project ai inspect --view models`](https://docs.oqoqo.ai/cli/agents-and-models#oqoqo-project-ai-inspect) | [`inspect_project_ai`](https://docs.oqoqo.ai/mcp-server/tools#inspect_project_ai) |
| Refresh model lists | [`oqoqo project ai apply`](https://docs.oqoqo.ai/cli/agents-and-models#oqoqo-project-ai-apply) with `refresh_models` | [`manage_project_ai`](https://docs.oqoqo.ai/mcp-server/tools#manage_project_ai) |
| Turn models on or off | [`oqoqo project ai apply`](https://docs.oqoqo.ai/cli/agents-and-models#oqoqo-project-ai-apply) with `set_model_enabled` or `set_models_enabled` | [`manage_project_ai`](https://docs.oqoqo.ai/mcp-server/tools#manage_project_ai) |
| Set context windows | [`oqoqo project ai apply`](https://docs.oqoqo.ai/cli/agents-and-models#oqoqo-project-ai-apply) with `set_model_context_windows` | [`manage_project_ai`](https://docs.oqoqo.ai/mcp-server/tools#manage_project_ai) |
| Delete or reset an organization provider, or disconnect your account | [`oqoqo project ai delete`](https://docs.oqoqo.ai/cli/agents-and-models#oqoqo-project-ai-delete) | [`delete_project_ai`](https://docs.oqoqo.ai/mcp-server/tools#delete_project_ai) |
| Get the dashboard link to enter a key or sign in | [`oqoqo setup links`](https://docs.oqoqo.ai/cli/agents-and-models#oqoqo-setup-links) | [`get_setup_links`](https://docs.oqoqo.ai/mcp-server/tools#get_setup_links) |

For example, list the providers that need attention:

```bash theme={null}
oqoqo project ai inspect --view providers --connection-state needs_attention
```

## Next steps

> [card] [Agents](https://docs.oqoqo.ai/setup/agents.md)
>
> Step 3: turn on the agents you want to evaluate.

> [card] [Oqoqo AI features](https://docs.oqoqo.ai/setup/oqoqo-ai.md)
>
> Step 5: choose models for Evals, Insights, and Ask Oqo.

> [card] [Profile and API keys](https://docs.oqoqo.ai/setup/profile.md)
>
> Step 7: connect your personal subscriptions.

> [card] [oqoqo project ai and setup](https://docs.oqoqo.ai/cli/agents-and-models.md)
>
> Look up every provider and model command.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.