GetToken Docs

Configure GetToken by topic

Short, focused guides for API Keys, base_url values, Codex App, Codex CLI, OpenCode, and CC Switch.

View my API Key

Sign in, reveal your current GetToken API Key, then copy it into Codex or OpenCode.

Account and Credentials

Get and Use an API Key

Your API Key is the personal credential used by Codex, OpenCode, and other tools.

An API Key is your credential for calling the GetToken API service. Coding tools do not use your GetToken password. They only need an API Key and a base_url.

Create or view an API Key

  1. Open the GetToken console.
  2. Go to API Keys.
  3. Create a key if you do not have one.
  4. Reveal, copy, test, or configure an existing key.
text
https://gettoken.dev/console/api-keys

Screenshot placeholder: API Key list in the console.

Where the key goes

Codex App / Codex CLI:

json
{
  "OPENAI_API_KEY": "<your GetToken API Key>"
}

OpenCode:

json
{
  "provider": {
    "openai": {
      "options": {
        "apiKey": "<your GetToken API Key>"
      }
    }
  }
}

Keep it private

  • Do not share your API Key.
  • Do not commit it to Git.
  • Do not show it in public screenshots.
  • Delete and recreate it if it may have leaked.