span login to share as your Halfspan user in a workspace. For CI, use a scoped workspace API key with traces:write. See Authentication for the dashboard, CLI, API key, and MCP credential model.| Command | Description |
login | Connect your user and workspace through the browser. |
auth status | Check your saved connection with the server. |
logout | Revoke the saved session and sign out of the CLI. |
1span login
span login again to start a new one.12span auth status span share --list --json
span auth status contacts the server and displays your name, email, organization, user ID, organization ID, and dashboard origin. It checks the saved personal connection, not an environment API key. span share --list discovers local sessions without sharing them or requiring credentials.span unshare use the saved login even when an API key is configured for uploads. Run span auth status before managing traces to check the connected workspace. To change the account or workspace, sign out of the CLI, sign into the intended account and workspace in the browser, then run span login and review the approval page.| System | Session file |
| macOS | ~/Library/Application Support/halfspan/cli/session.json |
| Linux | $XDG_CONFIG_HOME/halfspan/cli/session.json, or ~/.config/halfspan/cli/session.json when unset |
| Windows | %AppData%\halfspan\cli\session.json |
0700 and writes the file with mode 0600 on systems that support Unix permissions. Treat the file as a secret.1span logout
traces:write for unattended sharing. Store it as a secret and pass it explicitly:1span share --key "$HALFSPAN_API_KEY" --agent codex
span share selects credentials in this order:--key value.HALFSPAN_API_KEY.HALFSPAN_INGEST_TOKEN.--key to choose the automation credential explicitly. Legacy hook and import commands prefer HALFSPAN_INGEST_TOKEN when it is set and HALFSPAN_API_KEY is unset.HALFSPAN_API_URL, defaulting to https://app.halfspan.com. Saved-login uploads use the dashboard origin in the session file. See environment variables for API origins and native session directories.| What you see | What to do |
| Browser did not open | Open the URL printed by span login manually. |
| Approval canceled or expired | Run span login again and complete approval within 10 minutes. |
| Choose a company or company membership required | Complete company setup or ask your workspace administrator for access, then reopen the sign-in link. |
| Not signed in, or session expired or revoked | Run span login again. If membership was removed, ask your administrator to restore access. |
| Unexpected account or workspace | Check span auth status, run span logout, and repeat browser approval with the intended account and workspace. |
| Environment key appears to be ignored | A saved login takes precedence for sharing. Pass --key "$HALFSPAN_API_KEY" explicitly. |
| Logout fails during a network or server error | Restore connectivity and retry span logout so the saved session can be revoked. |
https://app.halfspan.com. They do not accept --url, ignore HALFSPAN_DASHBOARD_URL for login, and cannot reuse sessions from a development dashboard.just cli or just go-build support a local dashboard:123just cli login --url https://app.halfspan.localhost # A development server on a plain loopback address also works: just cli login --url http://localhost:4300
--url and the HALFSPAN_DASHBOARD_URL login default. The URL must be an origin without a path, query, or fragment. just cli-downloads builds production binaries for the CDN. span login --help prints help for the build you are running.