Skip to main content

Wormhole CLI

A reference command-line coding agent built on wormhole-sdk. Mostly exists to claim the wormhole-cli namespace on PyPI alongside wormhole-core and wormhole-sdk, but it's also a working terminal agent you can use as the starting point for your own CLI.

Install

pip install wormhole-cli

This pulls in wormhole-sdk (which pulls in wormhole-core and anthropic).

Run

export ANTHROPIC_API_KEY="sk-ant-..."
wormhole

You'll get a prompt; type natural-language instructions and the agent will read/write/edit files in the current directory and run shell commands, asking for approval before each tool call.

You: Read README.md and tell me what this project does
You: Create hello.py that prints hello world, then run it
You: quit

Flags

wormhole --help

  --api-key STR        Anthropic API key (or set ANTHROPIC_API_KEY)
  --base-url STR       Custom API endpoint (e.g. https://your-proxy.com)
  --model STR          Model name (default: claude-sonnet-4-20250514)
  --context-limit INT  Auto-compaction context limit (default: 200000)

What this is and isn't

It is: a small, working agent loop with terminal-based approval prompts and streaming output rendering. About 200 lines, no fancy UI.

It is not: a polished product. There's no fancy TUI, no config file, no persistence between runs. If you want any of those, fork agent.py — that's why it's a reference.

For a more involved example with task delegation, see packages/sdk/examples/coding_agent.py in the source repo, which this CLI is derived from.

License

wormhole-cli is distributed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See LICENSE for the full text.

Version History

Version Milestone Notes
0.1.0 Initial release Reference terminal coding agent. Pulls wormhole-sdk>=0.13.0,<0.14.0.

Metadata

Release files for wormhole-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wormhole-cli 0.1.0
File Size Uploaded
wormhole_cli-0.1.0.tar.gz 19.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wormhole-cli 0.1.0
File Interpreter ABI Platform
wormhole_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.3 kB

Release files / wormhole_cli-0.1.0.tar.gz

Download URL wormhole_cli-0.1.0.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dcdbe76ec50ef611c42dbcf1830d63f2b0d63e4b1b9d68963defe73bc215129d
BLAKE2b-256 checksum
How to use checksums
a683e811b636a6a94cd2cf761d728b163d05da21e90161cd932f8e90c65d1ff6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / wormhole_cli-0.1.0-py3-none-any.whl

Download URL wormhole_cli-0.1.0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8ef27f593b53b2c6d404ab35da07e4122c532d99b35b32508fe2ea392b40e93
BLAKE2b-256 checksum
How to use checksums
a5f31e82caf4e249fb06ec9a89417937219a34d7d3bca11a87017ad5c5bb169d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page