More personal agents
This page sets up agents that don’t have their own quickstart as a personal agent that runs third-party API calls through Swytchcode. For Hermes and OpenClaw, see the Hermes and OpenClaw quickstarts, and Personal agents for every supported agent.
Every agent needs the Swytchcode CLI on its machine first:
npm install -g swytchcodecurl -fsSL https://cli.swytchcode.com/install.sh | shirm https://cli.swytchcode.com/install.ps1 | iexAfter setting up your agent, connect the app and chat with it.
ZeroClaw
ZeroClaw grants MCP servers and skills to each agent through bundles, so Swytchcode doesn’t change its config for you: swy init prints exactly what to add.
1. Create the agent’s project
swy init --operator --editor=zeroclaw --project ~/agent-swyswy loginThis creates the project in sandbox mode, adds the baseline approval policy, and writes the Swytchcode skill to ~/agent-swy/agent-skill/swytchcode-operator/SKILL.md (with always: true, so it stays in the agent’s prompt).
2. Add the skill to a bundle
mkdir -p ~/.zeroclaw/shared/skills/swytchcodecp -R ~/agent-swy/agent-skill/swytchcode-operator ~/.zeroclaw/shared/skills/swytchcode/If you set ZEROCLAW_CONFIG_DIR, use that folder instead of ~/.zeroclaw; init prints the right paths.
3. Add the MCP server
Open ~/.zeroclaw/config.toml and paste the block init printed at the end of the file. It looks like this:
[[mcp.servers]]name = "swytchcode"command = "swytchcode"args = ["mcp", "serve", "--profile", "operator", "--project", "/home/you/agent-swy"]
[mcp_bundles.swytchcode]servers = ["swytchcode"]
[skill_bundles.swytchcode]- If the file already has
[[mcp.servers]]entries, keep them. This is one more entry. - If it already has a
[mcp_bundles.swytchcode]or[skill_bundles.swytchcode]section, don’t add a second one. TOML refuses duplicate sections and ZeroClaw won’t load the file.
This only defines the server and the bundles. No agent can use them until you grant them in the next step.
4. Grant it to your agent
-
Find the name of the agent you chat with:
Terminal window zeroclaw agents listUse that name wherever
<agent>appears below. If the list is empty, create one withzeroclaw agents create <agent>. Grant Swytchcode only to the agent you chat with, not to every agent. -
See which bundles it already has:
Terminal window zeroclaw config get agents.<agent>.mcp_bundleszeroclaw config get agents.<agent>.skill_bundles -
Add
swytchcodeto both lists.config setreplaces the whole list, so include what step 2 printed:Terminal window zeroclaw config set agents.<agent>.mcp_bundles '["swytchcode"]' # e.g. '["web","swytchcode"]'zeroclaw config set agents.<agent>.skill_bundles '["swytchcode"]'
Then connect the app. To chat, run zeroclaw agent --agent <agent>.
Optional: lock ZeroClaw down
Swytchcode only checks calls made through its tools. If the agent’s risk profile lets it run python, node, git or npm, it can edit policies.json or read your saved credentials directly. And without auto_approve, ZeroClaw asks “[Y]es / [N]o / [A]lways” before every Swytchcode call. Do this before you use real accounts.
-
Find the agent’s risk profile and print its lists:
Terminal window zeroclaw security status --agent <agent> --json # "alias" under risk_profile is the profile namezeroclaw config get risk_profiles.<profile>.allowed_commandszeroclaw config get risk_profiles.<profile>.auto_approve -
Set both lists again, starting from what was printed.
config setreplaces the whole list, and it must be a JSON list:allowed_commands: removepython,python3,node,git,npm,pip,cargo,findand any shell.auto_approve: add the 11 Swytchcode toolsinitprinted. A wildcard likeswytchcode__*doesn’t match.
Terminal window zeroclaw config set risk_profiles.<profile>.allowed_commands '["ls","cat","grep","head","tail","wc","date"]'zeroclaw config set risk_profiles.<profile>.auto_approve '["file_read","memory_recall","swytchcode__swytchcode_add","swytchcode__swytchcode_connect","swytchcode__swytchcode_discover","swytchcode__swytchcode_exec","swytchcode__swytchcode_get","swytchcode__swytchcode_info","swytchcode__swytchcode_list","swytchcode__swytchcode_policy","swytchcode__swytchcode_policy_add","swytchcode__swytchcode_policy_check","swytchcode__swytchcode_search"]'Replace the example entries with your own printed lists. If the agent has no profile yet, set one first:
zeroclaw config set agents.<agent>.risk_profile personal. -
Run
swy doctor --agent zeroclaw --project ~/agent-swyagain. The warnings should be gone. Restart the agent’s session.
ZeroClaw’s default forbidden_paths usually already covers the project and ~/.swytchcode; doctor tells you if it doesn’t.
NanoClaw
NanoClaw runs each agent in its own Docker container. Swytchcode runs on the host, outside the container, and the agent reaches it over HTTP. Your credentials and policies.json never enter the container, so the agent’s shell can’t reach them and there is nothing to lock down.
Run these on the NanoClaw host, as the user that runs NanoClaw.
1. Create the agent’s project
swy init --operator --editor=none --project ~/agent-swyswy loginThis creates the project in sandbox mode, adds the baseline approval policy, and writes the Swytchcode skill to ~/agent-swy/agent-skill/swytchcode-operator/.
2. Start the MCP server
Run the server over HTTP, where the agent’s container can reach it:
On Linux, containers reach the host through Docker’s bridge, so the server listens there:
BRIDGE=$(docker network inspect bridge --format '{{(index .IPAM.Config 0).Gateway}}')swy mcp serve --profile operator --project ~/agent-swy --transport http --bind "$BRIDGE" -dDocker Desktop forwards host.docker.internal to the Mac itself, so the default address works:
swy mcp serve --profile operator --project ~/agent-swy --transport http -dThe server needs its bearer token on every request. -d runs it in the background; start it again after a reboot.
3. Add it to your agent
Find the agent’s group id, then add the server with its token:
ncl groups listncl groups config add-mcp-server --id <group-id> --name swytchcode \ --url http://host.docker.internal:5476/mcp \ --headers "{\"Authorization\":\"Bearer $(swy mcp token)\"}"The agent can read the token in its own config. It only gives the agent the same Swytchcode tools it already has.
4. Add the skill
Copy the skill into NanoClaw’s shared skills, from the NanoClaw folder, and restart the agent:
cp -R ~/agent-swy/agent-skill/swytchcode-operator container/skills/ncl groups restart --id <group-id>Agents use every shared skill unless their skills setting lists only some. If ncl groups config get --id <group-id> shows a list, add swytchcode-operator to it.
Then connect the app. To chat, use the agent’s channel, or pnpm run chat "<message>" from the NanoClaw folder.
Dify
Dify runs in Docker and calls MCP servers over HTTP, so Swytchcode runs on the host as for NanoClaw. This needs self-hosted Dify: Dify Cloud can’t reach your machine.
Run these on the Dify host.
1. Create the project
swy init --operator --editor=none --project ~/agent-swyswy login2. Start the MCP server
swy mcp serve --profile operator --project ~/agent-swy --transport http -dBRIDGE=$(docker network inspect bridge --format '{{(index .IPAM.Config 0).Gateway}}')swy mcp serve --profile operator --project ~/agent-swy --transport http --bind "$BRIDGE" -dDify’s outbound calls go through its ssrf_proxy container, which doesn’t know host.docker.internal on Linux. Add it in docker/docker-compose.override.yaml:
services: ssrf_proxy: extra_hosts: - "host.docker.internal:host-gateway"3. Let Dify reach the host
Dify’s SSRF proxy blocks private addresses, including your host. Allow only host.docker.internal in docker/.env, then restart the proxy:
SSRF_PROXY_ALLOW_PRIVATE_DOMAINS=host.docker.internaldocker compose up -d ssrf_proxyWithout this, adding the server fails with 403 Forbidden.
4. Add the server in Dify
- In Dify, open Tools → MCP → Add MCP Server (HTTP).
- Set Server URL to
http://host.docker.internal:5476/mcp, and Name and Server Identifier toswytchcode. - Under Headers, add
Authorizationwith the valueBearer <token>, using the token fromswy mcp token. - Save. Dify lists the 11 Swytchcode tools.
5. Give your agent the tools and the rules
Dify has no skills. In your Agent app, add the Swytchcode tools, and paste the body of ~/agent-swy/agent-skill/swytchcode-operator/SKILL.md (everything below the --- header) into the agent’s Instructions.
Then connect the app.
Keep in mind:
- Everyone who uses the Dify app shares one project: its credentials, limits and approvals. Run one server per project to keep them apart.
- A call that needs approval doesn’t wait. The tool returns “approval requested”, and the call runs once someone approves it. The agent can tell the user. A workflow that needs the result shouldn’t depend on such calls.
Moltis
These steps run Moltis in Docker, as in its Docker quick start. Swytchcode runs on the host, as for NanoClaw, and Moltis reaches it over HTTP.
Run these on the Moltis host.
1. Create the project
swy init --operator --editor=none --project ~/agent-swyswy login2. Start the MCP server
swy mcp serve --profile operator --project ~/agent-swy --transport http -dBRIDGE=$(docker network inspect bridge --format '{{(index .IPAM.Config 0).Gateway}}')swy mcp serve --profile operator --project ~/agent-swy --transport http --bind "$BRIDGE" -dStart the Moltis container with --add-host=host.docker.internal:host-gateway, so it knows host.docker.internal.
3. Add the server in Moltis
- In Moltis, open Settings → MCP, and under Add Custom MCP Server choose Streamable HTTP.
- Set Server URL to
http://host.docker.internal:5476/mcp. - Under Request headers, add
Authorization=Bearer <token>, using the token fromswy mcp token. - Add it. Moltis lists the 11 Swytchcode tools.
Or add it to moltis.toml, then restart Moltis:
[env]SWY_MCP_TOKEN = "<token>"
[mcp.servers.swytchcode]transport = "streamable-http"url = "http://host.docker.internal:5476/mcp"headers = { Authorization = "Bearer ${SWY_MCP_TOKEN}" }4. Add the skill
Copy the skill into Moltis’s skills folder. With the container from Moltis’s Docker quick start, named moltis:
docker cp ~/agent-swy/agent-skill/swytchcode-operator moltis:/home/moltis/.moltis/skills/Moltis picks it up on the next message.
Then connect the app. To chat, use the Moltis web UI or one of its channels.
The agent’s container has no Swytchcode files or credentials, so there’s nothing to lock down. The agent can read the token in its own config. It only gives the agent the same Swytchcode tools it already has.
Sentient
Sentient is a desktop app on your computer, so it starts Swytchcode itself as a local command. No HTTP server or token is needed.
1. Create the project
swy init --operator --editor=none --project ~/agent-swyswy login2. Add the server in Sentient
- Open Integrations, and under MCP servers click Add server.
- Set Name to
swytchcodeand choose Local command. - Set Command to
swytchcodeand Arguments tomcp serve --profile operator --project /home/you/agent-swy. Use the full path to the project, not~. - Under What Sentient may do, choose Read and write. With Read only, Sentient refuses every Swytchcode call that could change something, so
execcan’t run. - Add it.
3. Allow the tools
Sentient checks every tool a new server offers and uses none until you allow it. It lists the 11 Swytchcode tools: allow all of them.
4. Add the skill
Copy the skill into Sentient’s skills folder, then restart Sentient. It reads skills when it starts.
cp -R ~/agent-swy/agent-skill/swytchcode-operator ~/.sentient/skills/On Windows the folder is C:\Users\<you>\.sentient\skills.
Then connect the app. To chat, use the Sentient window or its Telegram bot.
Sentient asks you before each Swytchcode tool that can change something (exec, add, get, connect, policy_add); the lookups run without asking. A call that changes something also waits for Swytchcode’s approval, so you approve it twice. To approve it only in Swytchcode, choose Always allow when Sentient asks about a Swytchcode tool: Swytchcode’s policies still apply to every call.
Optional: lock Sentient down
Sentient’s file tools stay in its own folder, and its terminal is off by default. Its code tool runs Python on your computer once you approve it, and that Python could edit policies.json or read your saved credentials. Before you use real accounts, turn it off in Settings → Code execution, and keep Settings → Terminal off.
MARVIN
MARVIN is a workspace for Claude Code, so Swytchcode is added to it as a Claude Code MCP server. These steps use ~/marvin for the MARVIN workspace; use the folder you chose in its setup. Keep the Swytchcode project outside it.
1. Create the project
swy init --operator --editor=none --project ~/agent-swyswy login2. Add the server
In the MARVIN workspace:
cd ~/marvinclaude mcp add swytchcode -- swytchcode mcp serve --profile operator --project ~/agent-swyclaude mcp list should show swytchcode as connected.
3. Add the skill
mkdir -p ~/marvin/.claude/skillscp -R ~/agent-swy/agent-skill/swytchcode-operator ~/marvin/.claude/skills/Then connect the app. To chat, run marvin (or claude in the workspace).
Claude Code asks before every MCP tool, the lookups included. When it asks about a Swytchcode tool, choose the option that stops it asking for the swytchcode server: Swytchcode’s policies and approvals still apply to every call.
MARVIN’s Telegram bot is a separate program with its own file tools. It doesn’t use Claude Code’s MCP servers, so it can’t reach Swytchcode: chat in Claude Code.
Optional: lock MARVIN down
Claude Code asks before it runs a command or edits a file. Once you allow its Bash tool, a command could edit policies.json or read your saved credentials. Before you use real accounts, add this to ~/marvin/.claude/settings.json:
{ "permissions": { "allow": ["mcp__swytchcode"], "deny": [ "Read(~/agent-swy/.swytchcode/**)", "Edit(~/agent-swy/**)", "Read(~/.swytchcode/**)", "Edit(~/.swytchcode/**)" ] }, "sandbox": { "enabled": true, "autoAllowBashIfSandboxed": true, "allowUnsandboxedCommands": false }}The deny rules keep Claude Code’s file tools out of the Swytchcode folders. The sandbox applies them to its commands too, and lets them run without asking. Swytchcode itself isn’t sandboxed, so its tools keep working. On Linux the sandbox needs bubblewrap and socat. The settings take effect once you trust the workspace, which Claude Code asks the first time you open it.
Picobot
These steps run Picobot in Docker, as in its quick start, with its data in ./picobot-data. Swytchcode runs on the host, as for NanoClaw, and Picobot reaches it over HTTP.
Run these on the Picobot host.
1. Create the project
swy init --operator --editor=none --project ~/agent-swyswy login2. Start the MCP server
swy mcp serve --profile operator --project ~/agent-swy --transport http -dBRIDGE=$(docker network inspect bridge --format '{{(index .IPAM.Config 0).Gateway}}')swy mcp serve --profile operator --project ~/agent-swy --transport http --bind "$BRIDGE" -dStart the Picobot container with --add-host=host.docker.internal:host-gateway, so it knows host.docker.internal.
3. Add the server to Picobot
Add this to picobot-data/config.json, using the token from swy mcp token:
"mcpServers": { "swytchcode": { "url": "http://host.docker.internal:5476/mcp", "headers": { "Authorization": "Bearer <token>" } }}4. Add the skill
cp -R ~/agent-swy/agent-skill/swytchcode-operator picobot-data/workspace/skills/docker restart picobotPicobot connects to MCP servers when it starts, and logs MCP server "swytchcode": registered 11 tools. The tools are named mcp_swytchcode_swytchcode_*.
Then connect the app. To chat, use Telegram, Discord, Slack or WhatsApp, or docker exec -it picobot picobot agent -m "...".
The container has no Swytchcode files or credentials, so there’s nothing to lock down. The agent can read the token in its own config. It only gives the agent the same Swytchcode tools it already has.
LangBot
These steps run LangBot in Docker, as in its Docker Compose setup, without the optional Box sandbox. Swytchcode runs on the host, as for NanoClaw, and LangBot reaches it over HTTP. The agent is LangBot’s Local Agent runner.
Run these on the LangBot host.
1. Create the project
swy init --operator --editor=none --project ~/agent-swyswy login2. Start the MCP server
swy mcp serve --profile operator --project ~/agent-swy --transport http -dBRIDGE=$(docker network inspect bridge --format '{{(index .IPAM.Config 0).Gateway}}')swy mcp serve --profile operator --project ~/agent-swy --transport http --bind "$BRIDGE" -dAdd extra_hosts: ["host.docker.internal:host-gateway"] to the langbot service in LangBot’s docker-compose.yaml, so it knows host.docker.internal.
3. Add the server in LangBot
- In the LangBot WebUI, open MCP and click Add MCP Server.
- Choose Remote, and set URL to
http://host.docker.internal:5476/mcp. - Under Headers, add
Authorizationwith the valueBearer <token>, using the token fromswy mcp token. - Save it. LangBot lists the 11 Swytchcode tools.
Pipelines use every MCP server by default. If you’ve limited yours, add Swytchcode to the pipeline’s extensions.
4. Add the skill
cd ~/agent-swy/agent-skill && zip -r swytchcode-operator.zip swytchcode-operatorIn the WebUI, open Skills, choose Upload ZIP Package and pick swytchcode-operator.zip. The agent loads it when a request involves an app.
Then connect the app. To chat, use any platform you’ve added as a bot (Telegram, Discord, Slack, WeChat, Lark, …) or the pipeline’s debug chat in the WebUI.
The container has no Swytchcode files or credentials, and without Box the agent has no shell or file tools, so there’s nothing to lock down.
PicoClaw
These steps run PicoClaw in Docker, as in its Docker Compose setup, with its data in docker/data. Swytchcode runs on the host, as for NanoClaw, and PicoClaw reaches it over HTTP. For PicoClaw as a plain binary (a small board, a Raspberry Pi), see Native install below.
Run these on the PicoClaw host.
1. Create the project
swy init --operator --editor=none --project ~/agent-swyswy login2. Start the MCP server
swy mcp serve --profile operator --project ~/agent-swy --transport http -dBRIDGE=$(docker network inspect bridge --format '{{(index .IPAM.Config 0).Gateway}}')swy mcp serve --profile operator --project ~/agent-swy --transport http --bind "$BRIDGE" -dIn PicoClaw’s docker/docker-compose.yml, uncomment the extra_hosts lines for the service you run, so it knows host.docker.internal.
3. Add the server to PicoClaw
In docker/data/config.json, turn MCP on and add the server under tools.mcp, using the token from swy mcp token:
"mcp": { "enabled": true, "servers": { "swytchcode": { "enabled": true, "type": "http", "url": "http://host.docker.internal:5476/mcp", "headers": { "Authorization": "Bearer <token>" } } }}MCP is off by default, so "enabled": true is needed at both levels. Keep the discovery block that’s already there.
4. Add the skill
cp -R ~/agent-swy/agent-skill/swytchcode-operator docker/data/workspace/skills/Restart PicoClaw. picoclaw mcp list in the container shows the server, and the tools are named mcp_swytchcode_swytchcode_*. PicoClaw lists the skill by name in the prompt, and the agent reads it from its workspace when a request involves an app.
Then connect the app. To chat, use any channel you’ve set up (Telegram, Discord, Slack, WeChat, …), or docker compose -f docker/docker-compose.yml run --rm picoclaw-agent -m "...".
The container has no Swytchcode files or credentials, so there’s nothing to lock down.
Native install
Run the same swy init on the PicoClaw machine, skip step 2, and add the server as a local command instead (use your own home folder):
"swytchcode": { "enabled": true, "command": "swytchcode", "args": ["mcp", "serve", "--profile", "operator", "--project", "/home/you/agent-swy"]}Copy the skill to ~/.picoclaw/workspace/skills/.
Then lock it down. PicoClaw’s restrict_to_workspace (on by default) keeps its file tools inside ~/.picoclaw/workspace, but its exec tool only checks the command text, so cd ~ && ... or a script it writes can still edit ~/agent-swy. Turn exec off in ~/.picoclaw/config.json:
"exec": { "enabled": false }That also stops scheduled jobs from running commands. Leave restrict_to_workspace on, so the agent can’t edit config.json to turn exec back on.
Any other agent
swy init --operator --editor=none --project ~/agent-swyswy logininit writes the skill to ~/agent-swy/agent-skill/ and prints the MCP server command. Add both to your agent the way it adds skills and stdio MCP servers.
- Agent in a container: run the server on the host over HTTP, as for NanoClaw. The container has no Swytchcode files or keys to reach.
- Tools listed, but every call fails: some agents stop a stdio server right after connecting. Run the server over HTTP instead (
swy mcp serve --profile operator --project ~/agent-swy --transport http -d) and addhttp://127.0.0.1:5476/mcpwith the headerAuthorization: Bearer <token>, using the token fromswy mcp token. If the agent then expects an SSE stream, look for a “streamable HTTP” option or URL form. - Tools listed, but every call says permission wasn’t granted: agents that run a coding CLI with no one to answer its prompts let through only the tools on a pre-approved list. Add the Swytchcode tools to that list (for Claude Code,
mcp__swytchcode). Taking the shell and file tools off the same list keeps the agent out of the Swytchcode folders. - Agent with a shell or file tools on your machine: it can edit
~/agent-swyand~/.swytchcodedirectly, around Swytchcode. Run it in a container, or deny those tools the two folders and the agent’s own config. If the agent has no setting for that, see whether it takes plugins that can block a tool call, and block the shell and file-write tools by name. Write the rules with full paths, as~isn’t always expanded, and check them by asking the agent to read a file there. If its search tools check only the folder they start in, deny them outright.
Connect the app
Connect the app before you ask the agent to use it. For Stripe:
-
Fetch it and add the key. Stripe uses an API key, which you enter here, never in the chat. Use a test key (
sk_test_...) while the project is in sandbox mode.Terminal window cd ~/agent-swyswy get stripeswy auth connect stripe -
Set the base URL. Stripe has no separate sandbox host, so set it yourself in
~/agent-swy/.swytchcode/integrations/manifest.json, in the entry that starts withStripe.stripe@:"Stripe.stripe@<version>": {"sandbox_endpoint": "https://api.stripe.com",...}Most apps don’t need this. If one does, its first call stops with “base URL … (sandbox) is not set” and names the entry.
Apps that use OAuth (Gmail, GitHub) don’t need a key: swy auth connect <app> opens a sign-in link, or the agent sends you one when it needs it. See Connecting apps.
Chat with it
Start a chat with your agent and ask:
Show my Stripe balance.The balance is a read, so it runs at once. A call that changes something, like creating an invoice, waits for your approval in the workspace’s approval channel (Telegram or Slack, set in app.swytchcode.com).
If the agent says it has no Swytchcode tools, check that the server is registered and restart the agent. For ZeroClaw, swy doctor --agent zeroclaw --project ~/agent-swy shows what’s missing.