---
last_updated: 2026-10-14
source_url: https://opper.ai/ai-wallet
---

# Opper Account

> A pay-as-you-go account for AI apps with a built-in AI wallet. Top up your wallet once and spend across 700+ models in every app you sign in to with Opper. Developers ship AI products without building the payment and inference layer.

## What it is

The Opper account has a built-in AI wallet: a pay-as-you-go balance of credits that every Opper-connected app can draw from. Users fund one wallet once and spend their credits across every app that supports Login with Opper. Apps integrate via one OAuth 2.0 flow and never handle user accounts, billing UI, or inference costs. Explore the full model catalog at https://opper.ai/models.

## Where your Opper account works today

- **Apps** (https://opper.ai/apps) — put any question to hundreds of models at once in AI Roundtable (https://opper.ai/ai-roundtable), then explore every app you can sign in to with Opper.
- **Coding agents** (https://opper.ai/agent-cli) — launch Claude Code, Codex, OpenCode, or Pi with one command and run them on your balance.
- **Build your own** — let users sign in to your app with Opper and pay for their own inference (integration below).

## User flow — from sign-in to paid inference in three steps

1. **User clicks "Login with Opper"** — They authenticate and consent to fund the calls your app makes.
2. **Your server gets a user-scoped API key** — The SDK exchanges the code and returns a key tied to their account.
3. **Call any model, user pays** — Call any model through Opper's gateway. Every token bills to the user's balance.

## SDK

- Package: `@opperai/login` (npm)
- Methods:
  - `exchangeCode(code)` → returns `{ apiKey, user }` — server-side token exchange
  - `getPortalUrl()` → returns URL to the user's Opper account portal

## Integration

### 1. Login button (client-side)

```html
<a href="https://api.opper.ai/oauth/authorize
  ?client_id=YOUR_CLIENT_ID
  &redirect_uri=https://yourapp.com/callback
  &response_type=code
  &state=RANDOM_STATE"
  class="opper-login-button">
  Login with Opper
</a>
```

### 2. Exchange code for API key (server-side)

```js
import { OpperLogin } from "@opperai/login";

const opper = new OpperLogin({
  clientId: process.env.OPPER_CLIENT_ID,
  clientSecret: process.env.OPPER_CLIENT_SECRET,
  redirectUri: "https://yourapp.com/callback",
});

app.get("/callback", async (req, res) => {
  const { apiKey, user } = await opper.exchangeCode(req.query.code);
  // Store apiKey in session. Use it for this user's inference.
});
```

### 3. Run inference (billed to the user)

```js
const response = await fetch("https://api.opper.ai/v3/compat/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${userApiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "anthropic/claude-sonnet-4-6",
    messages: [
      { role: "system", content: "Answer concisely." },
      { role: "user", content: prompt },
    ],
  }),
});
```

### 4. Link users to their account portal (optional)

```js
const portalUrl = opper.getPortalUrl();
// Render in your app:
// <a href={portalUrl} class="opper-login-button">Open Opper Account</a>
```

### One-shot via AI coding agent

The cookbook is a complete reference implementation. Paste the following into Claude Code, Codex, Cursor, or any AI coding agent:

```
Integrate Login with Opper into my app.
Reference implementation:

https://github.com/opper-ai/opper-cookbook/tree/main/examples/login-with-opper-web
```

Register an OAuth app at [platform.opper.ai](https://platform.opper.ai) first, then let your agent handle the rest.

## In production

- **AI Roundtable** (https://opper.ai/ai-roundtable) runs entirely on the Opper account. Thousands of funded accounts. Users sign in, top up, and pay for each round from their own balance. Runs on the Opper model catalog. Features Poll mode (independent answers) and Debate mode (models see each other's reasoning and can revise or challenge).

## Pricing

Users pay Opper's standard model pricing (provider rates with no markup, 3% fee on top-ups) from their balance. Developers never see the token cost.

## Partner program

Opper is working with a selected group of builders on a revenue-share model. Apps that bring users into the Opper ecosystem earn a cut of the gateway margin on their users' inference spend. Contact [wallet@opper.ai](mailto:wallet@opper.ai) to apply.

## 700+ models, one API

The page shows six popular models with where each is hosted in the EU and the US, and links to the full [model directory](https://opper.ai/models). To check whether a model is on Opper or what it costs, query the live catalogue rather than this page: https://api.opper.ai/v3/models?q=<name> answers as public JSON with no API key. Every model hosted in Europe, route by route, is at [opper.ai/models/eu.md](https://opper.ai/models/eu.md) (JSON at https://opper.ai/models/eu.json). No markup on provider prices.

## FAQ

**What is an AI wallet?**
A user-funded balance of AI credits that works across apps. The Opper account has exactly that built in, a prepaid wallet you top up once and spend across 700+ models in any app that supports Login with Opper.

**How does the Opper account relate to Opper's AI gateway?**
The account is the user-funded billing layer on top of Opper's AI gateway. Every inference call flows through the same gateway that routes across 700+ models, falls over on rate limits, and logs every call. The dev doesn't see the token bill, the user does.

**What if my user doesn't have an Opper account?**
Signup is built into the OAuth flow. New users create an account and add funds before being redirected back to the app.

**How is this different from "paste your API key"?**
One OAuth click gives users access to every model Opper supports, a revocable user-scoped API key, and a single balance they control, versus per-provider accounts and manual key pasting.

**Which models does the Opper account support?**
All 700+ models in the Opper catalog, including OpenAI, Anthropic, Google, Meta, Mistral, xAI, and AWS Bedrock.

**How is pricing set?**
Users pay Opper's standard model pricing (provider rates with no markup, 3% fee on top-ups) from their balance.

**Can app developers earn revenue from connected apps?**
Yes. Opper is working with a selected group of builders on a revenue-share model. Contact wallet@opper.ai.

## Links

- [Live demo: AI Roundtable](https://opper.ai/ai-roundtable)
- [Cookbook example on GitHub](https://github.com/opper-ai/opper-cookbook/tree/main/examples/login-with-opper-web)
- [Opper CLI on GitHub](https://github.com/opper-ai/cli)
- [Register an OAuth app](https://platform.opper.ai)
- [Builders program contact](mailto:wallet@opper.ai)
- [Opper AI Gateway](https://opper.ai/llm-gateway)
- [Pricing](https://opper.ai/pricing.md)
