Accounts Overview
Opta Accounts is the identity and cloud-sync layer for Opta apps. It provides Supabase-backed authentication, CLI browser login handoff, cloud API key sync, and account capability checks used by the CLI runtime.
What Is Opta Accounts
The Accounts portal runs at https://accounts.optalocal.com. The CLI uses it for browser OAuth sign-in and stores the resulting session locally. Once signed in, the CLI can sync API keys and evaluate account capabilities for gated actions.
- Auth - email/password, phone/password, and browser OAuth.
- CLI callback relay - secure redirect to local
127.0.0.1:<port>callback. - Cloud key sync -
opta account keys list|push|delete. - Capability checks - account and device-aware policy decisions.
Architecture
CLI Surface
Primary account commands:
Data Stored Locally
The CLI persists account session state to ~/.config/opta/account.json with file mode 0600. Directory mode is 0700.
Quick Start
Next Pages
- Auth - login modes, callback flow, token handling.
- Sync - key sync, device registration, capabilities.
- Troubleshooting - failure patterns and recovery commands.