# Connect Mistral Vibe to aicharged.io

> Mistral Vibe CLI: vibe mcp add reads the key from an environment variable; or append the server to config.toml.

## At a glance

| Kind | Sign-in | Platforms | Status | Verified |
|---|---|---|---|---|
| Terminal agents (CLI) | API key (Bearer), OAuth sign-in | macOS, Linux, Windows | works today | 2026-10-22 |

- MCP: `https://aicharged.io/api/v1/mcp`
- Docs: https://docs.mistral.ai/vibe/code/cli/mcp-servers

## Recipe

One command:

```sh
vibe mcp add aicharged --url https://aicharged.io/api/v1/mcp --api-key-env AICHARGED_API_KEY
```

Config file (`config.toml`):

```toml
[[mcp_servers]]
name = "aicharged"
transport = "streamable-http"
url = "https://aicharged.io/api/v1/mcp"

[mcp_servers.auth]
type = "static"
api_key_env = "AICHARGED_API_KEY"
api_key_header = "Authorization"
api_key_format = "Bearer {token}"
```

Append this to your user config.toml of Vibe; api_key_env names the environment variable that holds the key.

Store the key in an environment variable:

```sh
export AICHARGED_API_KEY="<API_KEY>"
```

Add the export line to your shell profile (e.g. ~/.zshrc) so new terminals see the key too.

[Client documentation](https://docs.mistral.ai/vibe/code/cli/mcp-servers)

## Authentication

- Send `Authorization: Bearer <API_KEY>` with every request. Create a key at https://aicharged.io/admin/account/api-keys.
- OAuth 2.1 (PKCE S256) is available for clients that cannot send a static key (ChatGPT).
- Without a key the endpoint answers 401 with a WWW-Authenticate header that points to https://aicharged.io/.well-known/oauth-protected-resource.

All 51 clients: https://aicharged.io/connect.md

HTML version: https://aicharged.io/connect/mistral-vibe
