Coterm CLI runtime
Project description
Coterm CLI
Coterm CLI is the local runtime for Coterm. It creates a session on a Coterm Hub, prints a pairing QR code, and runs the agent in your local terminal environment.
This package is designed to ship as an independent product:
- publish the source on GitHub
- distribute the CLI on PyPI with
pip install coterm - let users override the Hub with environment variables while keeping a built-in default
Source repository:
https://github.com/Heipiao/coterm
License
This project is licensed under the GNU Affero General Public License v3.0 or later.
If you distribute a modified version of Coterm CLI, you must provide the corresponding source code under the AGPL as well.
AGPL is stricter than GPL for server software: if someone modifies Coterm CLI and lets users interact with that modified version over a network, they must also offer the corresponding source code for that running version.
Requirements
- Python 3.10 or newer
- A reachable Coterm Hub
- Claude installed and available on
PATHfor the current alpha implementation
Hub Configuration
Coterm CLI has a built-in default Hub:
http://127.0.0.1:18083
You can override it with environment variables:
export COTERM_HUB=http://your-hub.example.com
Coterm CLI also accepts COTERM_HUB_BASE_URL.
Hub resolution order is:
--hubCOTERM_HUBCOTERM_HUB_BASE_URL- saved config in
~/.coterm/config.json - built-in default
http://127.0.0.1:18083
Install
Install from a published package:
pip install coterm
Install from a cloned repository:
cd coterm/cli
pip install .
Quick Start
Check prerequisites:
coterm doctor
Point the CLI at your Hub if you are not using the default:
export COTERM_HUB=http://your-hub.example.com
Save Hub credentials if your Hub requires them:
coterm auth login --hub http://127.0.0.1:18083
Start a session:
coterm
This will:
- Create a session on the configured Hub
- Create a pairing token
- Print a QR code and pairing code
- Start the local agent runtime
On the mobile side, the user scans the QR code or enters the pairing code to bind the iPhone to that session.
Commands
coterm
coterm doctor
coterm version
coterm auth status
coterm auth login --hub http://127.0.0.1:18083
coterm hub status
Configuration
Coterm CLI reads configuration from CLI flags, environment variables, and ~/.coterm/config.json.
Important environment variables:
COTERM_HUBorCOTERM_HUB_BASE_URL: Hub base URLCOTERM_AUTH_TOKEN: Hub auth tokenCOTERM_DEVICE_ID: Override the generated local device idCOTERM_HOME: Override config directory, default~/.cotermCOTERM_CLAUDE_BIN: Path to theclaudeexecutableCOTERM_WORKING_DIR: Default working directory
Resolution order for Hub configuration is:
- CLI argument
- Environment variable
- Saved config
- Built-in default
http://127.0.0.1:18083
Product Notes
This package is designed to be independently installable. However, today it still depends on external runtime prerequisites:
- A Hub must already exist or be separately installable
- Claude must be installed separately
- Authentication setup depends on your Hub deployment model
For production distribution, treat coterm-cli and coterm-hub as separate deliverables unless you intentionally publish both.
At the moment:
cotermis the user-facing runtime packagecoterm-hubshould be installed separately if you want local Hub managementcoterm hub startshould only be documented as supported whencoterm-hubis actually installed
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 coterm-0.1.0.tar.gz.
File metadata
- Download URL: coterm-0.1.0.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
628a488be67c6bc3784c33e661031b72f811619e70a55a1467c51364e08a2afa
|
|
| MD5 |
22c1ef310c992c8eb2f1e07cad582f14
|
|
| BLAKE2b-256 |
1da456376b7f76e6ea416847796fcf34bd9ab55df57777f94de123421350c79c
|
Provenance
The following attestation bundles were made for coterm-0.1.0.tar.gz:
Publisher:
cli-publish.yml on Heipiao/coterm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coterm-0.1.0.tar.gz -
Subject digest:
628a488be67c6bc3784c33e661031b72f811619e70a55a1467c51364e08a2afa - Sigstore transparency entry: 1154494795
- Sigstore integration time:
-
Permalink:
Heipiao/coterm@d957ae25d86f25ae505e8127b5cd79633baf6893 -
Branch / Tag:
refs/tags/cli-v0.1.0 - Owner: https://github.com/Heipiao
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cli-publish.yml@d957ae25d86f25ae505e8127b5cd79633baf6893 -
Trigger Event:
push
-
Statement type:
File details
Details for the file coterm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: coterm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba968e3fa7cc90606d6f349b30e4c87db34f39e6fde15b3d7ccd7dc63c800e65
|
|
| MD5 |
ef380548280e48095d384a10c3995bec
|
|
| BLAKE2b-256 |
a4ad3d86ffa38df44b95a1d9873e81091ab1b0e536bbb8b72f6e518b059d4188
|
Provenance
The following attestation bundles were made for coterm-0.1.0-py3-none-any.whl:
Publisher:
cli-publish.yml on Heipiao/coterm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coterm-0.1.0-py3-none-any.whl -
Subject digest:
ba968e3fa7cc90606d6f349b30e4c87db34f39e6fde15b3d7ccd7dc63c800e65 - Sigstore transparency entry: 1154494797
- Sigstore integration time:
-
Permalink:
Heipiao/coterm@d957ae25d86f25ae505e8127b5cd79633baf6893 -
Branch / Tag:
refs/tags/cli-v0.1.0 - Owner: https://github.com/Heipiao
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cli-publish.yml@d957ae25d86f25ae505e8127b5cd79633baf6893 -
Trigger Event:
push
-
Statement type: