AE Agent
Connecting an AI provider
AE Agent works with the AI provider of your choice. There are three ways to connect: bring your own API key, use an existing subscription through the official CLI, or run a model locally on your machine. Mix and match — switch between them anytime from the model picker.
Three ways to connect
a. API key
Paste your Anthropic, OpenAI, or Google API key and pay per use, billed directly by the provider. The simplest option — works instantly and supports every model the provider offers.
b. Subscription (official CLI)
Connect the official command-line tool — Claude Code, OpenAI Codex, or Gemini CLI — and use your existing Pro / Max / Plus plan. No per-token cost: usage counts against your subscription instead of a metered API bill.
c. Local AI
Run a model entirely on your own machine with Ollama or LM Studio. Free, private, and works offline — nothing leaves your computer.
Option A — API key
Open Settings, pick your provider, and paste your key. See Setup & API Keys for where to find each provider's key. Keys are stored locally and pay-as-you-go.
Option B — Subscription via the CLI
If you already pay for Claude Pro/Max, ChatGPT Plus, or Gemini, you can use that plan inside AE Agent through the provider's official CLI — with no extra per-token charges.
Install the CLI
npm install -g @anthropic-ai/claude-code
npm install -g @openai/codex
npm install -g @google/gemini-cli
npm — having the ChatGPT or Claude desktop app installed is not enough.Sign in once
Select it in AE Agent
Option C — Local AI
Run a model locally with Ollama or LM Studio for free, private, offline use. See the dedicated Local models guide for setup.
The unified model picker
Whatever you connect, every available model shows up in one picker, grouped by source so you always know what you're paying (or not paying) for:
| Group | Source | Cost |
|---|---|---|
| Subscription | Connected CLI (Claude Code, Codex, Gemini CLI) | Counts against your plan |
| API key | Anthropic / OpenAI / Google key | Pay per token |
| Local | Ollama / LM Studio on your machine | Free |