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.