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 or OAuth-based environments:
# OAuth login (opens browser for sign-in)
astonish login https://astonish.acme.corp --ssoThe --sso flag initiates an OAuth Authorization Code + PKCE flow: the CLI starts a temporary loopback HTTP server on 127.0.0.1, opens your browser to the Astonish authorization endpoint, and receives the authorization code on callback. No device code or manual code entry is required — sign-in completes automatically when the browser redirects back.
The CLI requests only the scopes it needs: openid, offline_access, and chat. It does not request tool:execute or other privileged scopes.
You 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. If a stale login is detected, astonish login automatically replaces the old credentials without requiring a manual astonish logout first.
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
- Authentication — full details on OAuth, OIDC, and token lifecycle