Skip to main content

Connect OpenAI Responses API to aicharged.io

215 tools, one endpoint: https://aicharged.io/api/v1/mcp

OpenAI Responses API

OpenAI Responses API: a hosted mcp tool — OpenAI calls aicharged.io for you; the key goes into the authorization field.

  • API key (Bearer)

Hosted MCP tool — the API calls aicharged.io for you

Recommended
import os
from openai import OpenAI

client = OpenAI()
response = client.responses.create(
    model="gpt-6-astra",
    input="List my recent aicharged.io runs",
    tools=[{
        "type": "mcp",
        "server_label": "aicharged",
        "server_url": "https://aicharged.io/api/v1/mcp",
        "authorization": os.environ["AICHARGED_API_KEY"],
        "require_approval": "never",
    }],
)
print(response.output_text)

OpenAI never stores the authorization value — send it with every request.

The same request with curl

curl https://api.openai.com/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
    "model": "gpt-6-astra",
    "input": "List my recent aicharged.io runs",
    "tools": [{"type": "mcp", "server_label": "aicharged", "server_url": "https://aicharged.io/api/v1/mcp", "authorization": "<API_KEY>", "require_approval": "never"}]
  }'

Or let the CLI set it up

aicharged setup finds the AI clients on this machine, signs you in through the browser and writes their configuration.

Connect in one line

Install the CLI · macOS / Linux
curl -fsSL https://aicharged.io/install.sh | sh && aicharged setup
Install the CLI · Windows
irm https://aicharged.io/install.ps1 | iex; aicharged setup
MCP endpoint
https://aicharged.io/api/v1/mcp

Streamable HTTP. Send the header Authorization: Bearer <API_KEY>, or sign in with OAuth where your client supports it.

Or tell your agent
Read https://aicharged.io/agent.md and set me up with aicharged.io

Open with this prompt in Claude (opens in a new tab) ChatGPT (opens in a new tab) Perplexity (opens in a new tab)