Step 1 — Generate a pairing code
Navigate to your project directory and run the init wizard:- Project name — used to identify this agent in the dashboard and bot messages. Defaults to the directory name.
- Runner — which AI engine to use. See Runners for the full list. Defaults to
claude-sdk. - API key — only prompted for runners that require one. Stored locally in
~/.remoteagent/config.jsonand never transmitted to any server.
Step 2 — Open the connect page
On your phone or browser, go to: remoteagent.chat/connectStep 3 — Log in with Telegram
Click the Login with Telegram button. A Telegram widget will open. Authenticate with your Telegram account — this is the account the bot will accept commands from.You only need to log in once per browser session. RemoteAgent uses the
Telegram Login Widget, which is a standard OAuth-style flow run entirely by
Telegram. RemoteAgent receives a verified user ID and username — not your
password or phone number.
Step 4 — Enter the pairing code
Type (or paste) the pairing code from Step 1 into the code input field and click Connect. The page confirms the pairing within a few seconds. Simultaneously, the Telegram bot sends you a confirmation message with a summary of the paired agent (project name, runner, machine hostname).Step 5 — Start the agent
Back in your terminal, start the agent process:Pairing multiple projects
You can pair as many agents as your plan allows by repeating this process in different project directories. Eachremoteagent init creates a separate agent with a unique ID. See Multi-project for details on how the bot handles routing between agents.
Re-pairing an existing agent
If you need to re-pair an agent (for example, after switching Telegram accounts), runremoteagent init again in the same directory. The wizard detects the existing configuration and asks whether to update it or create a new agent.
Where configuration is stored
After pairing, the agent’s credentials are stored in two places on your machine:~/.remoteagent/config.json— global settings (API key, preferred language)~/.remoteagent/agents/{agentId}.json— per-agent settings (agent ID, token, project path, runner, Redis URL)