Reference command-line agent built on wormhole-sdk.
Project description
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. |
Project details
Release history Release notifications | RSS feed
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 wormhole_cli-0.1.0.tar.gz.
File metadata
- Download URL: wormhole_cli-0.1.0.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcdbe76ec50ef611c42dbcf1830d63f2b0d63e4b1b9d68963defe73bc215129d
|
|
| MD5 |
fdc550e419b644755fd61131a3b90466
|
|
| BLAKE2b-256 |
a683e811b636a6a94cd2cf761d728b163d05da21e90161cd932f8e90c65d1ff6
|
File details
Details for the file wormhole_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wormhole_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8ef27f593b53b2c6d404ab35da07e4122c532d99b35b32508fe2ea392b40e93
|
|
| MD5 |
1fb589adceb2ea7914eb851b8375aa8c
|
|
| BLAKE2b-256 |
a5f31e82caf4e249fb06ec9a89417937219a34d7d3bca11a87017ad5c5bb169d
|