@astroanywhere/agent
v0.1.31
Published
Astro Agent Runner CLI - Lightweight agent runner for local, remote, and HPC environments
Maintainers
Readme
What is Astro?
Astro is mission control for the AI age. It turns ambitious goals into dependency graphs, dispatches tasks across your machines in parallel, and surfaces the decisions that need you.
You plan in the browser. Your machines do the work. The Agent Runner is the piece that runs on your machines — it receives tasks, executes AI agents (Claude, Codex), and streams results back.
Self-hosting is on the roadmap. Currently Astro runs as a hosted service at astroanywhere.com.
Prerequisites
Create an account at astroanywhere.com — you'll need it to authenticate your machines.
Install
npx @astroanywhere/agent@latest launchOne command. It detects your AI providers, finds your SSH hosts, authenticates you, sets up everything, and starts listening for tasks.
No global install. npx fetches the latest version.
What Happens
$ npx @astroanywhere/agent@latest launch
Detecting providers... claude-sdk, claude-code
Discovering SSH hosts... found 3: lab-gpu, hpc-login, aws-dev
To authenticate, open this URL in your browser:
https://astroanywhere.com/device?code=ABCD-1234
Waiting for approval...
✓ Authenticated as [email protected]
✓ Machine "my_laptop" registered
Installing on remote hosts...
✓ lab-gpu: installed and started
✓ hpc-login: installed and started
✓ aws-dev: installed and started
Remote agents: 3 running, 0 failed
✓ Connected to relay
Ready. Listening for tasks...Your laptop and all remote hosts appear in Astro's Environments page. Dispatch tasks to any of them.
What You Get with Astro Anywhere
| | Feature | | |---|---|---| | Plan | Describe a goal → Astro breaks it into a dependency graph | Graph, List, Timeline views | | Execute | Dispatch to any machine — laptop, server, HPC | Parallel, isolated branches | | Monitor | Real-time agent output, tool calls, file changes | Live streaming | | Decide | Approve, reject, or redirect from any device | No terminal needed | | Ship | PRs created automatically per task | Branch-per-task isolation | | Scale | Multi-machine routing by load & capability | SSH config auto-discovery |
What the Agent Runner Does
When you execute a task in Astro, it lands on one of your machines. The agent runner:
- Creates an isolated git branch for the task
- Runs Claude (or Codex) with your project's full context
- Streams progress back to the Astro UI in real time
- Commits changes, pushes the branch, and opens a PR
Multiple tasks run in parallel — each on its own branch, no conflicts.
Your API keys stay on your machine. Astro never sees them.
Commands
# First time — set up everything and start
npx @astroanywhere/agent@latest launch
# Local only, skip SSH host discovery
npx @astroanywhere/agent@latest launch --no-ssh-config
# Start (already set up)
npx @astroanywhere/agent@latest start -f
# Stop
npx @astroanywhere/agent@latest stop
# Check what's running
npx @astroanywhere/agent@latest status
# Set up Claude authentication
npx @astroanywhere/agent@latest auth
# View or change settings
npx @astroanywhere/agent@latest config --show
npx @astroanywhere/agent@latest config --set maxTasks=8Remote Machines
launch reads your ~/.ssh/config, discovers hosts, installs the agent runner over SSH, and starts them — all from your laptop.
To set up a single remote machine manually, SSH in and run:
npx @astroanywhere/agent@latest launch --no-ssh-configAstro picks the best available machine for each task based on load and capabilities.
AI Providers
Auto-detected. No configuration needed if any of these are installed:
| Provider | How to Enable |
|---|---|
| Claude SDK | Run astro-agent auth or set ANTHROPIC_API_KEY |
| Claude Code | Install Claude Code |
| Codex | Install Codex CLI |
MCP Integration
Use the agent runner as an MCP server inside Claude Code:
npx @astroanywhere/agent@latest mcpThis gives Claude Code access to Astro tools — attach to tasks, send updates, check status.
Configuration
Stored at ~/.config/astro-agent/config.json. Most users never need to touch this.
| Setting | Default | Description |
|---|---|---|
| maxTasks | 4 | Max concurrent tasks |
| logLevel | info | Logging verbosity |
| autoStart | false | Start on login |
Environment Variables
| Variable | Description |
|---|---|
| ANTHROPIC_API_KEY | Claude API key (alternative to OAuth) |
| ASTRO_MACHINE_NAME | Custom machine name |
| ASTRO_LOG_LEVEL | Override log level |
