# Geodd auth.md

## Audience and Supported Methods

This document is for AI agents and developers acting with a Geodd account owner's authorization. Agents use owner-provisioned API keys. It is safe to fetch this document for discovery; fetching it does not register an account or issue a credential.

Supported provisioning methods:

- Human-mediated account setup and inference API-key creation in the Geodd console.
- Human-mediated sign-in followed by authorized API-key creation through the Geodd CLI or existing console API.
- Support-approved Enterprise API-key provisioning for GPU access.
- Browser-approved OAuth access to enabled account tools through an allowlisted MCP client; see the [MCP guide](https://geodd.io/docs/llm-api/mcp).

The US MCP service advertises OAuth discovery at `https://api.geodd.io/.well-known/oauth-protected-resource` and `https://api.geodd.io/.well-known/oauth-authorization-server`, with resource `https://api.geodd.io/mcp`. MCP clients must be allowlisted and complete browser-based user consent. This is separate from inference API-key provisioning and does not establish compatibility with every AI app. There is no advertised autonomous agent-registration endpoint, anonymous registration, dynamic OAuth client registration, ID-JAG exchange, or verified-email agent claim flow. Google sign-in and account email verification alone do not grant MCP access. Use the published metadata; do not invent issuers, scopes, token endpoints, or registration URLs.

## Human-Mediated Account Setup

An account owner starts at [Geodd sign-in and signup](https://geodd.io/auth/login). New accounts use the available Google signup flow. Existing users can use Google or an existing passkey, with two-factor verification when required. Account setup and policy acceptance require the owner's involvement; an agent must not accept terms or consent on their behalf without authorization.

After signing in, the owner can create a key at [Inference API Keys](https://geodd.io/app/serverless-inference/api-keys). Select only the models the agent needs and save the one-time key secret securely. Give the agent the provisioned API key, not the owner's Google credential, passkey, two-factor code, or console session.

## CLI Provisioning

The [CLI Guide](https://geodd.io/docs/llm-api/cli-quick-start) documents installation and supported commands. The CLI requires Node.js 22 or newer.

1. Install the CLI with `npm install --global @geodd/cli@latest`.
2. Run `geodd auth signup` for a new account, or `geodd auth login` for an existing account. Complete Google sign-in and any two-factor verification in a browser on the same computer. `--no-browser` prints a URL; it does not enable unattended signup or an OAuth device grant.
3. Run `geodd models list --for-keys --json` to get model IDs accepted by key provisioning. These are not public inference model IDs.
4. With the owner's approval, run `geodd keys create --name my-agent-key --model MODEL_ID --json`, replacing `MODEL_ID` with an allowed provisioning ID. Choose a globally unique name using 1-32 letters, numbers, or dashes. Review the confirmation before approving.
5. Store the one-time secret at `data.data.apiKey` securely and retain `data.data.keyId` for management. The CLI does not save the key secret. Do not blindly retry creation after a timeout.

CLI key creation uses PostPaid billing. Its default monthly capacity is 3,000,000,000 tokens, not a spending cap. Review billing and capacity before approving creation; `--monthly-volume` changes capacity. Use `--yes` only for an explicitly authorized scripted operation. Keep JSON output containing secrets out of shared logs.

## Existing Console Provisioning API

These are authenticated key-management endpoints used by the console, not public account-registration or OAuth endpoints. Prefer owner-driven console or CLI provisioning over granting an inference agent access to account-management credentials.

The selected account API origin is `https://api.geodd.io` (US/global) or `https://eu.api.geodd.io` (EU). Use the same origin as the authenticated account session. Console requests use `Content-Type: application/json` and `secret_token: <GEODD_SESSION_TOKEN>`, not the inference Bearer key. Do not send this session credential to other origins or follow redirects with it.

| Method | Path | Purpose |
| --- | --- | --- |
| GET | `/console/models` | Obtain provisioning models; the console uses each record's `_id` from `data.models`. |
| POST | `/console/api-keys/generate` | Create an API key for the selected provisioning model IDs. |
| POST | `/console/api-keys/update` | Update a key's name or replace its complete model set. |
| POST | `/console/api-keys/{keyId}/regenerate` | Rotate a key, with explicit owner authorization. |
| DELETE | `/console/api-keys/{keyId}` | Delete a key, with explicit owner authorization. |

For example, the US provisioning URL is `https://api.geodd.io/console/api-keys/generate`; the EU URL is `https://eu.api.geodd.io/console/api-keys/generate`. Creation is a state-changing, billing-sensitive action. Never invoke it during a passive discovery scan.

The creation request contains `name` (string) and `models` (a nonempty array of provisioning model IDs). The console also supports `environment` (string), `monthlyVolume` (number), and `billing` (string). Its current creation flow uses `billing: "PostPaid"` and `monthlyVolume: 3000000000`; these values do not establish a spending limit. A successful raw API response has `success: true` and `data.apiKey` / `data.keyId`. This differs from the CLI's additional `data` wrapper.

An update request contains `keyId` and the desired `name` and/or `models`. Supplying `models` replaces the entire model set. Use `keyId`, not the secret, in management paths. Key creation, changes, rotation, and deletion require owner authorization. A console session is broader than an inference credential and should not be supplied to an agent that only needs inference access.

## Use an Inference Credential

Send the provisioned API key in an HTTP header:

```http
Authorization: Bearer <GEODD_API_KEY>
```

Supported inference base URLs are:

- `https://api.geodd.io/inference/v1`
- `https://eu.api.geodd.io/inference/v1`

Use the region and models authorized for the key. Generation and embedding requests require authentication. Model discovery at `GET /inference/v1/models` and `GET /inference/v1/models/{modelId}` supports anonymous reads; authenticated results are scoped to the key. Anonymous model discovery does not register an identity or issue a credential.

See the [Inference Quick Start](https://geodd.io/docs/llm-api/getting-started), [model catalog](https://geodd.io/models), [model discovery documentation](https://geodd.io/docs/llm-api/available-models), and [inference OpenAPI description](https://geodd.io/openapi/inference.json). The [API catalog](https://geodd.io/.well-known/api-catalog) links the documented service descriptions.

## Enterprise GPU Credentials

GPU API access is Enterprise-only and requires approval through [support@geodd.io](mailto:support@geodd.io). It is not self-service inference-key provisioning. After approval, the account team issues a key authorized for VM routes at `https://api.geodd.io`; send it as `Authorization: Bearer <ENTERPRISE_API_KEY>`.

See the [GPU API Quick Start](https://geodd.io/docs/gpu-api/getting-started). Registering an SSH public key is a separate resource operation, not agent identity registration. Upload only public SSH keys, never private keys. GPU instance lifecycle operations are currently documented as unavailable.

## Credential Safety

- Do not put credentials in URLs, this document, prompts, analytics, or shared logs. Store keys in a secret manager or an appropriately protected runtime environment.
- Do not probe registration, provisioning, rotation, deletion, or email-verification flows during discovery. Email-verification links change account state even though they use GET.
- Preserve required human sign-in, consent, and two-factor checks. A pending authentication token is not a completed account session.
- CLI logout removes the selected origin's local session; it does not revoke backend sessions or delete API keys. Use authorized key-management controls to remove inference-key access. US MCP OAuth metadata advertises `https://api.geodd.io/oauth/revoke`; MCP token revocation does not delete provisioned API keys or undo console actions. No revocation event feed is advertised.
