Connect Arbling to Claude Code or Codex
Your coding assistant can read your Arbling workspace: the site you connected, your audits and their PDF reports, and your blog articles.
How it reads
It reads through the Arbling account server, using a key you create in the cabinet. The key cannot order, pay, approve or publish anything. One older tool, get_blog_status, can move an open onboarding forward and schedule its site scan; to read articles without that, ask for get_blog_article.
1. Create a read key
- In the Arbling cabinet, open Settings → Tracking code.
- Under Read access for your own AI agents, choose Your AI assistant.
- Select Create a read key.
Only the workspace owner can create this key. The cabinet shows it once, so copy it then.
- Keep it in an environment variable, set without typing it into your shell history:
- bash or zsh:
read -rs ARBLING_ACCOUNT_KEY && export ARBLING_ACCOUNT_KEY, then paste the key and press Enter; - PowerShell 7.1 or later:
$env:ARBLING_ACCOUNT_KEY = Read-Host -MaskInput; - Windows PowerShell 5.1, which has no
-MaskInput:$env:ARBLING_ACCOUNT_KEY = [System.Net.NetworkCredential]::new('', (Read-Host -AsSecureString)).Password.
- bash or zsh:
- Don't paste it into a chat or a command line.
- To cut access, select Revoke key. The old key stops working on its next call.
2. Add the server: Claude Code
With ARBLING_ACCOUNT_KEY set as in step 1, run this once:
claude mcp add --transport http arbling-account https://api.arbling.com/api/mcp/account --header "Authorization: Bearer $ARBLING_ACCOUNT_KEY"The shell fills in the key, so it never appears in the command you typed. Claude Code then saves the header, key included, in its own settings file, ~/.claude.json. If other people use that computer account, revoke the key when you stop using it there.
Add --scope user to use it in every project, not only the current one. Don't use --scope project: it writes the server, key included, to .mcp.json in your repository.
2. Add the server: Codex
Add the server to ~/.codex/config.toml:
[mcp_servers.arbling-account]
url = "https://api.arbling.com/api/mcp/account"
bearer_token_env_var = "ARBLING_ACCOUNT_KEY"Codex reads the key from ARBLING_ACCOUNT_KEY in the shell that starts it, set as in step 1. Don't write the key into the file.
3. Try it
Ask your assistant, for example:
- “Which site is connected to my Arbling workspace, and is it verified?”
- “List my Arbling audits, then get the report of the latest finished one.”
- “Show my latest saved blog articles.”
Each answer includes a link to the same page in the cabinet.
AI traffic on your site (optional)
Beacon's read-only server reports which AI agents and crawlers visit your site and which AI assistants send you visitors. It works the same way:
- Key: in step 1, choose Agent traffic analytics instead.
- Endpoint:
https://api.arbling.com/mcp/beacon.
If it doesn’t connect
-32001 Unauthorizedon every call: the key is wrong, revoked, or not a “Your AI assistant” key; create a new one and replace it. Or the account tools are not enabled for your workspace yet: contact Arbling support before you replace a key that may be fine.- Codex says the variable is empty: set
ARBLING_ACCOUNT_KEYin the same shell before starting Codex. - The assistant can't find a tool: restart your assistant after adding the server, so it lists the tools again.
