Skip to content

Sign in to Toolstile Cloud, self-hosted servers and local instances - #24

Merged
akshitkrnagpal merged 1 commit into
mainfrom
cli-targets
Nov 19, 2026
Merged

akshitkrnagpal merged 1 commit into
mainfrom
cli-targets

Conversation

@akshitkrnagpal

@akshitkrnagpal akshitkrnagpal commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor
  • toolstile auth login signs in to Toolstile Cloud by default, any server with --server <url>, or the instance on this machine with --local. Plain http:// is accepted only for loopback addresses.
  • One saved sign-in per server, plus a current one. TOOLSTILE_SERVER (or TOOLSTILE_URL) sets the default, and --server / --local work on every command that talks to a server.
  • New toolstile auth status and toolstile whoami. toolstile auth logout takes --server, --local or --all.
  • Self-hosted servers have no workspaces, so mcp setup sends no workspace ID and refuses --workspace.
  • Each agent keeps the server that issued its token, and the proxy sends it nowhere else. Agents on different servers can run side by side. Moving one asks first, or needs --switch without a terminal, and removes the old authorization when it can (it says so when it cannot).
  • The credentials file moves to a per-server format on first use. Agent links keep their shape, so proxies from earlier versions keep working.

Needs servers that report edition from /api/cli/account. Servers that do not are treated as Toolstile Cloud.

Checks: vp run typecheck, vp run test (170 tests), vp run build.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

- `auth login --server <url>` signs in to any Toolstile server and
  `--local` to the instance on this machine (the origin in its
  instance.json, else http://127.0.0.1:4310). Plain http is accepted only
  for loopback addresses.
- One saved sign-in per server, plus a current one. `TOOLSTILE_SERVER`
  (or `TOOLSTILE_URL`) picks the default; `--server` and `--local` work
  on every command that talks to a server.
- New `auth status` and `whoami`; `auth logout` takes `--server`,
  `--local` or `--all`.
- Self-hosted servers have no workspaces: setup sends no workspace ID and
  refuses `--workspace`.
- Agents keep the server that issued their token. Agents on different
  servers coexist, and moving one asks first (or needs `--switch`
  without a terminal) and removes the old authorization when it can.
- A self-hosted server's gateway must share its origin.
- The credentials file moves to a per-server format on first use; agent
  links keep their shape, so proxies from earlier versions still work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@akshitkrnagpal
akshitkrnagpal merged commit 361de07 into main Nov 19, 2026
1 check passed
@akshitkrnagpal akshitkrnagpal mentioned this pull request Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant