# Connect Qwen Code to aicharged.io

> Qwen Code adds aicharged.io with one command; the config uses httpUrl (Streamable HTTP) with an Authorization header.

## 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://qwenlm.github.io/qwen-code-docs/en/users/features/mcp

## Recipe

One command:

```sh
qwen mcp add --transport http aicharged https://aicharged.io/api/v1/mcp --header "Authorization: Bearer <API_KEY>"
```

Config file (`~/.qwen/settings.json`):

```json
{
  "mcpServers": {
    "aicharged": {
      "httpUrl": "https://aicharged.io/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer <API_KEY>"
      }
    }
  }
}
```

For one project use .qwen/settings.json.

[Client documentation](https://qwenlm.github.io/qwen-code-docs/en/users/features/mcp)

## 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/qwen-code
