# Connect Grok to aicharged.io

> Grok on grok.com: a custom connector — the API-key option is unverified; on the xAI API a remote MCP tool works with your key today.

## At a glance

| Kind | Sign-in | Platforms | Status | Verified |
|---|---|---|---|---|
| AI assistants | API key (Bearer), OAuth sign-in | Web | works today | 2026-10-22 |

- MCP: `https://aicharged.io/api/v1/mcp`
- Docs: https://docs.x.ai/grok/connectors

## Recipe

1. Go to grok.com/connectors → New Connector → Custom.
2. Enter https://aicharged.io/api/v1/mcp and complete the authentication.
3. Grok Business/Enterprise: an admin adds it first in console.x.ai → Grok Business → Connectors → + Add Connector → Other.

Remote MCP server URL:

```text
https://aicharged.io/api/v1/mcp
```

Unverified: the xAI docs only say to complete any required authentication — whether the dialog accepts a static API key is not documented. If it offers only a sign-in, wait for OAuth on aicharged.io or use the xAI API below.

xAI API — remote MCP tool:

```sh
curl https://api.x.ai/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $XAI_API_KEY" \
  -d '{
    "model": "grok-4.7",
    "input": "List my recent aicharged.io runs",
    "tools": [{"type": "mcp", "server_url": "https://aicharged.io/api/v1/mcp", "server_label": "aicharged", "headers": {"Authorization": "Bearer <API_KEY>"}}]
  }'
```

Documented at docs.x.ai/developers/tools/remote-mcp; the headers are sent to aicharged.io with every request.

[Open in Grok](https://grok.com/?q=Read%20https%3A%2F%2Faicharged.io%2Fagent.md%20and%20set%20me%20up%20with%20aicharged.io) · [Client documentation](https://docs.x.ai/grok/connectors)

## 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/grok
