Remote CLI
The same astonish binary works both locally and against a remote platform server. After logging in, CLI commands execute in your platform context with access to shared memory, team resources, and cascading configuration.
Logging In
# Authenticate with a platform server
astonish login https://astonish.acme.corpThis prompts for your email and password interactively. For SSO-enabled environments:
# SSO/OIDC login (uses device-code flow internally)
astonish login https://astonish.acme.corp --ssoYou can also pre-select your org and team to skip interactive prompts:
astonish login https://astonish.acme.corp --org acme --team backendCredentials are stored locally in ~/.config/astonish/remote.yaml.
Checking Status
astonish statusShows your current connection info: server URL, user, org, and team.
Selecting Org and Team
Org and team context is set during login. To switch, log out and log back in:
astonish logout
astonish login https://astonish.acme.corp --org acme --team frontendIf you omit --org and --team, the login flow will prompt you to select from available options interactively.
Available Commands in Remote Mode
Once logged in, these commands work against the platform:
# Chat (session stored on the platform)
astonish chat
astonish chat --resume <session-id>
# Sessions
astonish sessions list
astonish sessions show <session-id>
astonish sessions delete <session-id>
# Flows
astonish flows list
astonish flows run <name>
astonish flows show <name>
# Team and org context
astonish team list
astonish org list
astonish statusConfiguration
Remote CLI settings are stored in ~/.config/astonish/remote.yaml:
url: https://astonish.acme.corp
org: acme
team: backend
user_email: alice@acme.corpThis file is created automatically by astonish login and removed by astonish logout.
Logging Out
astonish logoutThis removes the remote.yaml file and revokes the stored session.
Next Steps
- Platform Overview — understanding the platform architecture
- Organizations & Teams — the org/team context model