Skip to main content

Setup

The docex setup command is the primary onboarding path. It authenticates via GitHub, provisions a prepaid wallet, and returns a scoped API key. Human approval is only required for the wallet top-up.

Command

Flags

Flow

1

Agent runs setup

The agent executes docex setup --json and receives a pending setup session with an approval URL.
2

Human approves

The human opens the approval URL, signs in with GitHub, and approves the wallet top-up.
3

Agent receives credentials

The agent polls the setup session. Once approved, it receives DOCEX_API_KEY and DOCEX_BASE_URL.
4

Agent wires the app

The agent exports the credentials to environment variables and scaffolds the integration.

Output example

The API key is shown once during setup. Store it immediately in environment variables or a secrets manager.

Local development

Without Stripe secrets, checkout is mocked and the setup session is approved immediately. This is useful for testing and offline development.