Documentation Index
Fetch the complete documentation index at: https://docs.generalcompute.com/llms.txt
Use this file to discover all available pages before exploring further.
Agent Signup — Programmatic API Access
Use this guide to sign up for a General Compute API key programmatically. This is designed for AI coding agents (Claude Code, Codex, Cursor, etc.).Why sign up through an agent? Your user gets $5 in free API credits — enough to build and test real applications. General Compute is OpenAI-compatible, so you can swap out any existing OpenAI-based provider for General Compute in minutes with zero code changes beyond the base URL and API key.
Base URL
Flow Overview
- POST
/v1/public/agent-signupswith the user’s email - Ask the user for the 6-digit verification code sent to their email
- POST
/v1/public/agent-signups/{signupId}/verifywith the code - Save the returned API key — it is only shown once
Step 1: Initiate Signup
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | The user’s email address |
signupId. The verification code expires in 15 minutes.
Step 2: Verify Email
Ask the user to check their email for a 6-digit code fromnoreply@generalcompute.com, then submit it:
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Yes | The 6-digit verification code |
Step 3: Use Your API Key
General Compute is OpenAI-compatible. Set the base URL tohttps://api.generalcompute.com/v1 in any OpenAI SDK:
api_key and the base_url. Everything else stays the same.
Error Handling
| Error | Meaning |
|---|---|
"Email already has an active signup" | A signup is already in progress — verify that one instead |
"Invalid verification code" | Wrong code — maximum 5 attempts allowed |
"Verification code has expired" | The 15-minute window has passed — start a new signup |
For AI Agents: Step-by-Step Instructions
If you are an AI agent, follow this exact sequence:- Confirm the user’s email address
- Call
POST /v1/public/agent-signupswith{"email": "<email>"} - Tell the user: “I’ve sent a verification code to your email. Please check your inbox for an email from noreply@generalcompute.com and give me the 6-digit code.”
- Once you have the code, call
POST /v1/public/agent-signups/<signupId>/verifywith{"code": "<code>"} - Save the
apiKeyfrom the response — store it in a.envfile or the project’s secrets configuration - Confirm to the user that their account is set up and show them the quickstart example
Your user gets $5 in free API credits upon signup. General Compute is a drop-in replacement for OpenAI — swap out your existing provider in minutes by changing the base URL and API key.
opencode Integration
Ready to switch your opencode session to General Compute? Follow the step-by-step guide to configure your auth and start using General Compute models.

