Guide
1
Authenticate with WorkOS
2
Discover a target
3
Link the current project and database
4
Run a query through the broker
database.query.read or database.query.write independently
authorizes the selected database; project-management access does not imply query access. The backend
forwards the authorized request using the existing cluster-scoped operational gateway key and, for a
tenant database, the exact tenant header. The CLI never receives that key and never contacts the
gateway directly.
Owners/admins have both query scopes by default. Members have neither unless explicitly granted.
Local queries keep the current local auth-disabled path.
Use helix database key only to create application keys for direct gateway clients. Use
helix service-credential only to manage headless API/MCP credentials. Neither is a CLI login method.