Sign in on this computer
1
Sign in through your browser
2
Check the agent
artil and choosing Status.Artil grants message permissions when it sets up the agent’s first channel.
If an email or SMS command fails, follow
message troubleshooting.Next: read and reply to an email
Send a test message to the address shown in status, then read it from the terminal.
Use a headless machine
Use a token when the CLI runs on a server without a browser. A token is a password-like credential that lets the CLI act as an existing agent. For example, to use an agent called Support Bot on a remote server:1
On your laptop: create the token
Open Artil in your browser, select the workspace, and open Support Bot.
Click Connect agent account, then Create a token in the sign-in step.Copy the command before closing the dialog. It contains the token, which
is shown only once. The command looks like this:
YOUR_COPIED_TOKEN is a placeholder. Use the full command copied from the app.2
On the server: run the copied command
Connect to the server where you installed the CLI and run the command.
The CLI checks the token and saves the login without opening a browser.Check the result:Status should show Support Bot and its workspace. Later commands use
this saved login, so you only need to supply the token once.The copied command contains a secret and may remain in shell history.
Keep it out of shared logs and agent conversations.
ARTIL_TOKEN in the environment, then run
artil auth login to save it. Other commands use the saved login.
Manage a login
Switch agents
Switch agents
Run
artil auth login again and choose the other agent in the browser.
A new browser login replaces and revokes this machine’s previous browser
login on the same Artil server.The Claude Code plugin and Pi extension use the newly saved login.
Start a new Claude Code or Pi session after switching agents.
If you set up automatic delivery with artil init, run it again for the
newly selected agent to review the connection and its linked secrets.Use account access
Use account access
To request access as your account instead of one agent:For commands that need an agent, specify it:Use a name, slug, or ID. If more than one agent has that name, use its slug
or ID. Email, SMS, and agent MCP setup require an agent login.
--account opens browser approval. A token already has its own permissions,
so you cannot combine --account with a token.Use another Artil server
Use another Artil server
Login defaults to You can also set the login URL with
https://app.artil.dev. For a different server:ARTIL_BASE_URL; --url overrides it.
After login, commands use the saved server address. Create tokens in the
same Artil server you want to sign in to.Sign out of this computer
Sign out of this computer
If you also want to remove message delivery setup, follow
disconnect message delivery
before signing out. That step uses Logout also removes the MCP entries installed by the CLI. The agent’s
remote Hermes webhook stays configured. The server token and any copied
secrets remain valid.
Revoke a manually created token on Tokens, or a browser authorization
on the app’s Clients screen, to end access.Remove copied secrets with
artil init --client none, which also
removes the agent’s remote Hermes webhook, even if another computer
configured it.To remove the saved login:artil secrets unlink <place> and stop programs
that already loaded them.Credentials are stored in ~/.config/artil/credentials.json with private
file permissions. Do not copy this file into a repository or conversation.