Connecting Claude Code
Claude Code connects with a connection token. Get a token in the console, paste the one command that the console shows into the terminal, and paste the token when the command asks. Claude Code in the terminal, VS Code and JetBrains share the same setup.
Before you start
Type this in the terminal and press Enter. If you see a version number, you are ready.
claude --version
If it says the command is not found, install Claude Code first. After you install it, open a new terminal.
Steps
Choose Claude Code in the console
In the console, go to Connections → Add connection and choose Claude Code.
Check the connection name and get a token
The name is already "Claude Code". If you use several computers, change it to something like "Work laptop · Claude Code". Select Verify and issue token. If you have not signed in within the last 10 minutes, you confirm it is you once more with an email code.
Copy the command and paste it into the terminal
Select Copy command in the console. Paste it into the terminal and press Enter. The console first shows the command for your browser's operating system (macOS·Linux or Windows). If you set up another computer, switch the tab.
Paste the token when asked
Select Copy token in the console. Paste it into the terminal and press Enter. The pasted text stays hidden. That is normal.
You are done when you see Status: ✓ Connected
When it works, the terminal shows this, and the console's connection check changes to "Connected".
✓ Saved. Token: ~/.claude.json Testing the connection… Status: ✓ ConnectedIf Claude Code was already running, start it again to see the Clone-Me tools.
What the command does
The command is long, but what it does is simple. Select Show the command in the console to see all of it.
- It checks that the
claudecommand exists. If not, it tells you to install Claude Code first and stops. - If Clone-Me (
cloneme) is already registered, it asks whether to replace it with the new token. - It reads the token as hidden input and checks that it starts with
cm_live_. - It registers the server with
claude mcp add --scope user. The token is saved only in Claude Code's user config file (~/.claude.json). - It tests the connection with
claude mcp get clonemeand shows only the status lines.
Do it by hand
On macOS·Linux, the same steps by hand look like this.
# Paste the token and press Enter. It stays hidden.
read -rs CM_TOKEN
claude mcp add --transport http --scope user cloneme https://clonememcp.102labs.com/mcp \
--header "Authorization: Bearer $CM_TOKEN"
unset CM_TOKEN
Check the registration
- In Claude Code, type
/mcpto see the status ofcloneme. - You can also run
claude mcp get clonemein the terminal. It also prints the header with the token, so do not show the output to others. - When the first request reaches the server, Last used is filled in on the console's connection page.
Help Claude Code use Clone-Me
Agents call tools when the model thinks they are needed. Add lines like these to your project's CLAUDE.md, and Claude Code uses Clone-Me more often.
Before deciding a choice that depends on my taste, standards or way of working, check with cloneme's ask_me first.
Before a big change, send the plan to ask_me for review.
Whole conversations are not sent to the server. The agent sends only the cases it picks. How Clone-Me works explains the three tools (remember, recall, ask_me).
If it does not work
| What you see | What to do |
|---|---|
The claude command was not found | Install Claude Code first. Open a new terminal and run the command again. |
That is not a token starting with cm_live_ | Copy the token again with Copy token and run the command again. |
✘ Failed to connect or 401 | The token was pasted wrong or has expired or been revoked. Issue a new token on the connection details page and run the same command again. |
| Claude Code doesn't show the Clone-Me tools | Quit Claude Code completely and start it again. Check the status with /mcp. |
See Troubleshooting for more.
Other MCP clients
Any HTTP (Streamable HTTP) MCP client that can send an Authorization header can connect with the same address and header. Choose Other MCP client under Add connection in the console to get a token. Example config:
{
"mcpServers": {
"cloneme": {
"type": "http",
"url": "https://clonememcp.102labs.com/mcp",
"headers": { "Authorization": "Bearer ${CLONEME_TOKEN}" }
}
}
}
Last updated Oct 28, 2026