Skip to content

Account and billing

Sign in, sign out, switch accounts, list Dexto models, and read your credit balance.

These commands follow the output contract: JSON when stdout is not a terminal, failures as JSON on stderr, and exit codes 0 to 6.

login and logout are described in Sign in. dexto accounts list and logout work signed out; models list, billing and whoami need a sign-in or an API key.

Generated from dexto 2.0.0-beta.0.

dexto login

Sign in to Dexto with your browser or a device code; --api-key saves a key instead, for CI.

dexto login
Option What it does
--device Approve a code on any device, for SSH sessions and machines without a browser.
--no-browser Print the sign-in link instead of opening it.
--org <org> Sign in for this organization, saved as a profile named after it and used from now on.
--scope <scope> … Also ask for a permission, such as drive:write; a first sign-in only reads.

JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.

dexto logout

End the sign-in on the server and forget it here.

dexto logout

JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.

dexto whoami

Show who Dexto commands act as: the profile, account, organization and project.

dexto whoami

JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.

dexto accounts list

List saved sign-ins, one per account and organization; * marks the one in use.

dexto accounts list

JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.

dexto accounts use

Use this saved sign-in from now on.

dexto accounts use <profile>

JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.

dexto accounts remove

Log a saved sign-in out and forget it here. Asks first.

dexto accounts remove <profile>
Option What it does
--yes Go ahead without being asked. Pass it only once your person has agreed.

JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.

dexto models list

List the models Dexto serves on your sign-in, as dexto/<model>.

dexto models list

JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.

dexto billing

Show the organization's credit balance and recent spending.

dexto billing
Option What it does
--buy Open the page to buy Dexto credits.

JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.

Shared options

Commands on this page that follow the JSON contract take these.

Option What it does
--api-base-url <api-base-url> The API origin (default https://api.dexto.ai, or DEXTO_API_BASE_URL).
--api-key <api-key> Use this key instead of DEXTO_API_KEY or the saved sign-in.
--profile <profile> The saved sign-in to use for this run (or DEXTO_PROFILE); see dexto accounts list.
--project <project> The Cloud project to act in when you're signed in (or DEXTO_CLOUD_PROJECT).
--json Print JSON, failures included (on stderr). The default when stdout isn't a terminal.
--table Print tables for people even when stdout isn't a terminal.