---
title: "Authentication"
description: "Power Aeon runs via Claude subscription OAuth, Anthropic API keys, eight LLM gateways, and cross-repo GitHub PATs."
canonical: "https://www.aeon.fun/docs/auth"
---

# Authentication (https://www.aeon.fun/docs/auth)

> Power Aeon runs via Claude subscription OAuth, Anthropic API keys, eight LLM gateways, and cross-repo GitHub PATs.
>
> Full docs: https://www.aeon.fun/docs.md | Whole-site summary: https://www.aeon.fun/llms.txt

Aeon authenticates to Claude through two direct credentials or eight optional LLM gateways. Set one secret in your repository (via [Aeon Connect](https://www.aeon.fun/connect), `./aeon init`, or GitHub Settings); each run auto-resolves the active provider from whichever secret is present.

## Ten Supported Providers

| Provider (`gateway.provider`) | Type | Secret Name | Notes |
| --- | --- | --- | --- |
| **Claude subscription** (`claude`) | Direct | `CLAUDE_CODE_OAUTH_TOKEN` | Included in Claude Pro / Max (`claude setup-token`) |
| **Anthropic API** (`anthropic`) | Direct | `ANTHROPIC_API_KEY` | Pay-as-you-go per token at [`platform.claude.com`](https://platform.claude.com) |
| **OpenRouter** (`openrouter`) | Gateway | `OPENROUTER_API_KEY` | Anthropic-native passthrough via [`openrouter.ai`](https://openrouter.ai) |
| **Bankr** (`bankr`) | Gateway | `BANKR_LLM_KEY` | Discounted Opus access via [`bankr.bot`](https://bankr.bot) |
| **UsePod** (`usepod`) | Gateway | `USEPOD_TOKEN` | Solana token marketplace via [`usepod.ai`](https://usepod.ai) |
| **Venice** (`venice`) | Gateway | `VENICE_API_KEY` | Privacy-first inference via [`venice.ai`](https://venice.ai) |
| **Surplus** (`surplus`) | Gateway | `SURPLUS_API_KEY` | USDC-settled via [`surplusintelligence.ai`](https://surplusintelligence.ai) |
| **Grok / xAI** (`grok`) | Gateway | `XAI_API_KEY` | Anthropic-compatible passthrough to [`api.x.ai`](https://x.ai) |
| **GLM / Z.AI** (`glm`) | Gateway | `GLM_API_KEY` | Z.AI Coding Plan passthrough to [`z.ai`](https://z.ai) |
| **HivemindOS** (`hivemindos`) | Gateway | `HIVEMINDOS_CREDIT_TOKEN` | Credit-balance billing without a separate provider account |

## Claude Subscription OAuth

For Claude Pro or Max subscribers, generate a 1-year setup token locally and paste it into **Connect a model** in [Aeon Connect](https://www.aeon.fun/connect) (or let `./aeon init` save it):

```bash
claude setup-token
# opens browser -> prints sk-ant-oat01-... (valid 1 year)
```

## Gateway Auto-Resolution

`aeon.yml` defaults to `gateway: { provider: auto }`. On each run, Aeon checks secrets in this order:

```text
claude (CLAUDE_CODE_OAUTH_TOKEN) -> anthropic (ANTHROPIC_API_KEY) ->
openrouter -> bankr -> usepod -> venice -> surplus -> grok -> glm -> hivemindos -> direct (fallback)
```

Override the resolution order with `GATEWAY_ORDER`, or pin a specific provider in `aeon.yml` (`gateway: { provider: openrouter }`). See [`docs/CONFIGURATION.md#llm-gateways`](https://github.com/aeonfun/aeon/blob/main/docs/CONFIGURATION.md#llm-gateways) for full gateway details.

## Cross-Repo GitHub Access

The default `GITHUB_TOKEN` is scoped to your Aeon repository only. For skills that inspect or open PRs on external repositories ([`github-monitor`](https://www.aeon.fun/skills/github-monitor), [`pr-review`](https://www.aeon.fun/skills/pr-review), [`feature`](https://www.aeon.fun/skills/feature), [`vuln-scanner`](https://www.aeon.fun/skills/vuln-scanner)), store a **classic** Personal Access Token as `GH_GLOBAL` with `repo` and `workflow` scopes. Skills automatically fall back to `GITHUB_TOKEN` when `GH_GLOBAL` is unset.
