Agentic AI Atlasby a5c.ai
OverviewWikiGraphFor AgentsEdgesSearchWorkspace
/
GitHubDocsDiscord
i.4Wiki
Agentic AI Atlas · Remote bootstrap
docs/adapters/tutorials/remote-bootstrapa5c.ai
Search the atlas/
Wiki · linked records

Article and nearby pages

I.Current articlepp. 1 - 1
Cost trackingDocker Invocation ModeGetting StartedHooksKubernetes Invocation ModeMock Harness
I.
Wiki article

docs/adapters/tutorials/remote-bootstrap

Reading · 2 min

Remote bootstrap reference

The adapters-remote adapter lets you drive a coding agent that runs on a

Page nodewiki/docs/adapters/tutorials/remote-bootstrap.mdNearby pages · 9Documents · 0

Continue reading

Nearby pages in the same section.

Cost trackingDocker Invocation ModeGetting StartedHooksKubernetes Invocation ModeMock HarnessMulti-Agent DispatchPlugins (MCP)Sessions

Remote bootstrap

The adapters-remote adapter lets you drive a coding agent that runs on a remote host — over SSH, in a container, or behind a gateway. "Bootstrap" is the process of getting the remote side ready: installing adapters, wiring credentials, and establishing a session channel.

1. Install on the remote host

bash
# On the remote machine
curl -fsSL https://nodejs.org/dist/v22.x/node-v22.x-linux-x64.tar.xz | tar -xJ
npm i -g @a5c-ai/adapters-cli

Or use the built-in bootstrap command, which copies an install script over SSH and runs it:

bash
adapters remote bootstrap user@host --agent claude

This installs the CLI, ensures the target harness (e.g. @anthropic-ai/claude-code) is present, and writes a minimal ~/.adapters/config.json on the remote.

2. Configure credentials

The remote host needs the same env vars (or config files) that the local setup would need. Options:

etc. from the local shell into the SSH session for the lifetime of the run.

so the harness authenticates without env vars.

  • **env-forward** (default): adapters forwards ANTHROPIC_API_KEY / OPENAI_API_KEY /
  • **config-file**: pre-seed ~/.claude/auth.json (or equivalent) on the remote
  • **per-call**: pass env: { ANTHROPIC_API_KEY: '…' } to run().

3. Running against the remote

ts
import { AgentMuxClient } from '@a5c-ai/adapters';

const client = new AgentMuxClient();
const handle = await client.run({
  agent: 'adapters-remote',
  remote: { host: 'user@host', agent: 'claude' },
  prompt: 'Summarize the repository in two paragraphs.',
});

for await (const ev of handle.events()) {
  if (ev.type === 'text_delta') process.stdout.write(ev.text);
}

From the CLI:

bash
adapters run adapters-remote \
  --remote-host user@host \
  --remote-agent claude \
  "Summarize the repository."

4. Invocation modes

The remote adapter respects adapters's invocation modes:

  • mode: 'host' — spawn the remote CLI directly (SSH exec).
  • mode: 'docker' — run the remote CLI inside a container on the remote host.
  • mode: 'k8s' — submit the remote CLI as an ephemeral pod.

See docker-mode and k8s-mode for the container flavors — the same flags apply to adapters-remote.

5. Tearing down

adapters remote teardown user@host removes ~/.adapters/, the installed harness (if you used bootstrap), and any cached sessions. Use --keep-sessions to preserve the history directory.

Trail

Wiki
Babysitter Docs
adapters docs
Agent Adapter Tutorials

Remote bootstrap

Continue reading

Cost tracking
Docker Invocation Mode
Getting Started
Hooks
Kubernetes Invocation Mode
Mock Harness
Multi-Agent Dispatch
Plugins (MCP)

Page record

Open node ledger

wiki/docs/adapters/tutorials/remote-bootstrap.md

Documents

No documented graph nodes on this page.