Local runtime connector for Agents Anywhere
Project description
Anywhere CLI
Local runtime connector for Agents Anywhere. It runs on the machine that owns the workspace and agent runtimes, connects to the server over HTTP/WebSocket, executes connector RPC locally, and uploads normalized runtime/session state back to the backend.
Layout
connector/
claude/ Claude Code discovery, adapter, reducer, and transcript logic
codex/ Codex app-server discovery, RPC, adapter, and reducer logic
local/ Local filesystem, shell, and terminal backends
cli.py anywhere-cli CLI
runtime.py Connector config, auth, WebSocket loop, and RPC dispatch
tests/ Connector tests
pyproject.toml Connector dependencies and console script
run.sh Local helper for saved-config startup
Run
Install dependencies:
uv sync
Start with explicit credentials from the web pairing flow:
uvx anywhere-cli start \
--server-url http://127.0.0.1:8000 \
--connector-id conn_xxx \
--connector-token cxt_xxx
Or save the config locally and start without arguments:
uvx anywhere-cli configure \
--server-url http://127.0.0.1:8000 \
--connector-id conn_xxx \
--connector-token cxt_xxx
uvx anywhere-cli start
The default config path is ~/.agent-server/connector.json. Override it with
--config or AGENT_CONNECTOR_CONFIG.
Runtime Discovery
The connector discovers Codex and Claude locally and reports attached runtime
capabilities to the server. If a runtime is not on PATH, set one of:
CODEX_BIN=/path/to/codex
CLAUDE_BIN=/path/to/claude
The connector uses local runtime credentials and local filesystem permissions. Agents Anywhere does not proxy Claude or Codex account credentials.
Local Operations
The server can ask an online connector to perform local work:
- read/list/write files inside workspace-safe roots
- upload/download file content through the server
- run one-shot shell commands
- start and wait for shell tasks
- create, write, resize, stream, list, and close interactive terminals
- start, interrupt, sync, and approve runtime turns
Environment
| Variable | Purpose |
|---|---|
AGENT_CONNECTOR_CONFIG |
Connector config path. |
AGENT_SERVER_URL |
Server URL used when --server-url is omitted. |
AGENT_CONNECTOR_ID |
Connector id used when --connector-id is omitted. |
AGENT_CONNECTOR_TOKEN |
Connector token used when --connector-token is omitted. |
AGENT_CONNECTOR_ATTACHMENTS_ROOT |
Runtime attachment download directory. Defaults to ~/.agents-anywhere/attachments. |
CODEX_BIN |
Explicit Codex CLI/app-server path. |
CLAUDE_BIN |
Explicit Claude Code CLI path. |
Verify
uv run ruff check connector tests
uv run pytest -q
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anywhere_cli-0.1.3.tar.gz.
File metadata
- Download URL: anywhere_cli-0.1.3.tar.gz
- Upload date:
- Size: 135.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
671bd3e4e187c790463de86e2357aaffb9bacd62a9d6a495b2e992696939ed21
|
|
| MD5 |
7bcecde91fedce6d1d488cbe73131806
|
|
| BLAKE2b-256 |
b913fadb192b62f5446ec2c99ea8bd35c91436396ddfc8cd6ef6bf414fa27258
|
File details
Details for the file anywhere_cli-0.1.3-py3-none-any.whl.
File metadata
- Download URL: anywhere_cli-0.1.3-py3-none-any.whl
- Upload date:
- Size: 77.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3d03dffcc0b9374a165f6bb79c73c330a5caedf87e13981ef5b3aca7ec3439f
|
|
| MD5 |
61557345f310fbea764eef5f676d5b21
|
|
| BLAKE2b-256 |
895bf59d896df1cf4f11b4608ede154226c0a12b0dc728523237f189d580bbb6
|