Use Agent.Space plans and credits in any Agent product

02 / Developer API

Use Agent.Space plans and credits in any Agent product

Codex Dedicated plans cover OpenAI models, and credits pay for other available models as you go. Use them in Agent.Space, Codex, Claude Code, OpenCode, Hermes, and other Agent products you already work with.

Your Developer API is paid by

Plans + Credits

Codex Dedicated

OpenAI models

Included in your Codex Dedicated plan.

Official pay-as-you-go

Other available models

Paid from credits you can top up as needed.

Use it in the Agent products you already know

Built inAgent.Space
Codex
Claude Code
OpenCode
Hermes
Your Agent product

Use it directly in Agent.Space. For other products, connect your Developer API once and keep working there.

GPT Image 2 uses your plan allowance first, then credits when no plan is available or its allowance is used up. Other models use their listed funding source.

03 / Agent clients

Use Agent.Space models in the client you already love

Download Codex, Claude Code, or OpenCode and point it at the Agent.Space Developer API. One API key brings your plan allowance, credits, and every available model into the terminal and editor you already work in.

  • Codex

    OpenAI · Coding agent for terminal and IDE

    OpenAI's official coding agent with a CLI, IDE extensions, and a desktop app. It connects over the OpenAI Responses protocol and runs the OpenAI models in your Codex Dedicated plan.

    • macOS
    • Linux
    • Windows

    Install · macOS / Linux

    bash
    curl -fsSL https://chatgpt.com/codex/install.sh | sh
  • Claude Code

    Anthropic · Terminal coding agent

    Anthropic's official coding agent, speaking native Anthropic Messages. Point its base URL at Agent.Space to run Claude models pay-as-you-go with credits.

    • macOS
    • Linux
    • Windows

    Install · macOS / Linux

    bash
    curl -fsSL https://claude.ai/install.sh | bash
  • OpenCode

    Open source · Terminal coding agent

    An open-source terminal agent with custom providers, compatible with both OpenAI and Anthropic protocols. One config unlocks every model available on Agent.Space.

    • macOS
    • Linux
    • Windows

    Install · macOS / Linux

    bash
    curl -fsSL https://opencode.ai/install | bash

Why connect through Agent.Space

  • One key

    One API key, many model providers

    OpenAI, Anthropic, DeepSeek, and more share a single key and endpoint. Switch models without switching accounts.
  • Two protocols

    OpenAI Responses and Anthropic Messages

    Connect over each client's native protocol. No proxies and no client patches: configure once and keep working.
  • Clear billing

    Plans and credits stay separate

    Models in your plan use its allowance first, the rest is paid from credits, and every request is visible in Request history.
  • Your choice

    Swap clients any time

    Codex today, Claude Code tomorrow. Your key and allowance stay the same, so your workflow never breaks.

Three moves: get an API key, pick a model, write the config. No client code changes required.

  1. Get an API key

    Create a key in the Agent.Space Developer API panel, for example “Codex · MacBook”. Replace <your-api-key> in the copied config with the full value.

  2. Pick a model

    Open the setup guide, choose your client and an available model, and let the template fill in the exact model id.

  3. Write the client config

    Copy the complete config, replace the key placeholder, and save it at the path shown for your client. Keep the file local.

  1. Clear your old login

    Remember to delete your ~/.codex/auth.json file first, if it exists.

  2. Update your config

    Keep the first three model settings at the top of config.toml, before any [section]. Replace existing entries and keep the provider block complete.

  3. Add your API key

    Replace <your-api-key> with your key, then save the file locally.

Get my API key

Config file · ~/.codex/config.toml

toml
# IMPORTANT: Always keep this block at the TOP of this file.# ↓model = "gpt-6-astra"model_reasoning_effort = "high"model_provider = "agent-space"# ↑
# ...# There could be more blocks here in this file.# ...
# This is a full block.# ↓[model_providers.agent-space]name = "Agent.Space"base_url = "https://api.agent.space/v1"wire_api = "responses"experimental_bearer_token = "<your-api-key>"# ↑
# ...# There could be more blocks here in this file.# ...

Other ways to install

  • npmnpm install -g @openai/codex
  • Homebrewbrew install --cask codex
  • Windowspowershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

The template already includes the endpoint and selected model. Replace <your-api-key>, then keep the config file local and never commit or share it.

Start in one Space

Bring your next task to Agent.Space

Choose an Agent, keep the project in the cloud, and collaborate without losing context.