Coterm CLI runtime
Project description
Coterm CLI
Coterm CLI is the local runtime for Coterm. It starts an agent on your machine, connects it to a Coterm Hub, and prints a QR code plus pairing code so a mobile client can attach to the session.
Install
Install from PyPI:
pip install coterm
Requirements
- Python 3.10 or newer
- A reachable Coterm Hub
- Claude installed and available on
PATHfor the current alpha implementation
Quick Start
Check local prerequisites:
coterm doctor
If you are using your own Hub, point the CLI at it explicitly:
export COTERM_HUB=http://your-hub.example.com
If your Hub requires authentication, save the Hub URL and token:
coterm auth login --hub http://your-hub.example.com
Start a session:
coterm
This will:
- Contact the configured Hub
- Request a pairing flow
- Print a QR code and pairing code
- Wait for a mobile client to complete pairing
- Start the local agent runtime
Some distributions may ship with a built-in default Hub so pip install coterm can work out of the box. If you run your own Hub, use --hub or COTERM_HUB to override it.
Hub Configuration
Coterm CLI resolves the Hub in this order:
--hubCOTERM_HUBCOTERM_HUB_BASE_URL- saved config in
~/.coterm/config.json - package default, if the distribution defines one
Save Hub credentials locally:
coterm auth login --hub http://your-hub.example.com
Check saved configuration:
coterm auth status
Commands
coterm
coterm doctor
coterm version
coterm auth status
coterm auth login --hub http://your-hub.example.com
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
Notes
- The current alpha implementation supports Claude only.
- A Hub must already exist or be installed separately.
- Authentication behavior depends on your Hub deployment model.
License
This project is licensed under the GNU Affero General Public License v3.0 or later.
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.2.0.tar.gz.
File metadata
- Download URL: coterm-0.2.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 |
fd5fd0ebdca111c363766943590b13258977c86d2a2bbc18541a4eda614b5c4b
|
|
| MD5 |
ebd1117fa6d38c17eff83432500e5dc6
|
|
| BLAKE2b-256 |
ed16daab0096ad6a8abc4a89f074c0cade6a16ebbdc488c5080a63ed2f7d5825
|
Provenance
The following attestation bundles were made for coterm-0.2.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.2.0.tar.gz -
Subject digest:
fd5fd0ebdca111c363766943590b13258977c86d2a2bbc18541a4eda614b5c4b - Sigstore transparency entry: 1154908902
- Sigstore integration time:
-
Permalink:
Heipiao/coterm@15ddfc092185356b70f73885f68240993cf75655 -
Branch / Tag:
refs/tags/cli-v0.2.0 - Owner: https://github.com/Heipiao
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cli-publish.yml@15ddfc092185356b70f73885f68240993cf75655 -
Trigger Event:
push
-
Statement type:
File details
Details for the file coterm-0.2.0-py3-none-any.whl.
File metadata
- Download URL: coterm-0.2.0-py3-none-any.whl
- Upload date:
- Size: 24.7 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 |
635ba4b8935ae4fccc25ce1528bf21e05c69e099ae09d72746ab6afee58dab6a
|
|
| MD5 |
0245aa46038e2e828bdfccab4319f834
|
|
| BLAKE2b-256 |
ba1c01f75056632c69dd929865f434488a0e5be5317d2b343be9bf320cd11d65
|
Provenance
The following attestation bundles were made for coterm-0.2.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.2.0-py3-none-any.whl -
Subject digest:
635ba4b8935ae4fccc25ce1528bf21e05c69e099ae09d72746ab6afee58dab6a - Sigstore transparency entry: 1154908910
- Sigstore integration time:
-
Permalink:
Heipiao/coterm@15ddfc092185356b70f73885f68240993cf75655 -
Branch / Tag:
refs/tags/cli-v0.2.0 - Owner: https://github.com/Heipiao
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cli-publish.yml@15ddfc092185356b70f73885f68240993cf75655 -
Trigger Event:
push
-
Statement type: