AppForShareOpen the approval page

Docs

Sign in from the browser, no token to copy

The appforshare CLI, the npm MCP server and the plugin for Claude Code and Codex sign in with a short code you approve in the browser. The computer gets its own upload token; nothing is pasted into a config file. Every plan can sign in; what the token can do follows your plan.

  1. 1. Start the sign in

    Run appforshare login with no token, run npx appforshare-mcp login, or ask your assistant to use the MCP tool sign_in (the plugin's /appforshare:setup does it for you). It shows an 8 letter code and the address appforshare.io/device, and opens your browser when the computer has one (--no-browser skips that).

    npx appforshare login
    To sign in, open https://appforshare.io/device and enter the code KXTRBMPL
    Waiting for approval (the code works for 5 minutes)...
  2. 2. Approve in the browser

    Signed in on appforshare.io, the page shows the code, the computer name and system, the app (CLI or MCP server) and version and the network address it asked from. Pick a workspace (Personal, or a Team workspace where you are Owner, Admin or Developer) and press Approve, or Refuse.

  3. 3. Done on the computer

    The computer checks every 5 seconds and gets an upload token valid for 90 days on its first check after you approve. It is saved in ~/.config/appforshare/credentials.json, readable only by you, and shared by the CLI and the npm MCP server.

Rules that keep it safe

A code works once, for 5 minutes. Viewers cannot approve. A team that requires two step sign in refuses approval from a member who has not set it up. Each approval is a security line in the team's activity feed, and sign in attempts are rate limited per network address and per person.

Signing in again with the same app on the same computer and workspace revokes the older token. Only a hash of the token is stored on our side.

Sign out and revoke

appforshare logout, npx appforshare-mcp logout or the MCP tool sign_out revoke the token on the server and delete the file. Settings, API tokens lists every browser sign in with a badge, where Revoke stops it at once.

npx appforshare whoami
npx appforshare logout

CI keeps using tokens

APPFORSHARE_TOKEN and --token still win over a saved sign in, so CI jobs and scripts behave as before. Make CI tokens in Settings, API tokens, with a scope and an end date.

Questions

What can a Free account do after signing in?
Show who is signed in (whoami) and revoke its own token. Uploads, the MCP tools and other commands need Pro or Team; on Free, upload on the website.
Can I pick which workspace the computer uses?
Yes, on the approval page: Personal or a Team workspace where you are Owner, Admin or Developer.
Does it work over SSH?
Yes. The code and address print in the terminal, and you approve on any device where you are signed in to appforshare.io.

See also: Plugin for Claude Code and Codex, MCP server, Upload from CI, Security.