ant — the Antaḥkaraṇa governed-AI operator CLI: prompt your on-box copilot to investigate/operate a machine, read-only by default, with y/N approval for changes and catastrophic commands hard-blocked.
Project description
ant — Antaḥkaraṇa governed-AI operator CLI
Author — Deepak Soni. A tiny, dependency-free, cross-platform CLI (Windows / macOS / Linux) that prompts your
on-box copilot (the Antaḥkaraṇa model + control ring) from any terminal — Claude-Code style. It investigates
a machine, reasons, runs read-only commands immediately, and asks y/N before any state-changing action;
catastrophic commands (rm/dd/mkfs/reboot/…) are hard-blocked server-side.
PyPI: https://pypi.org/project/antahkarana-cli/ · command: ant
Install
pip install antahkarana-cli # or: pipx install antahkarana-cli
First run
ant connect http://YOUR-BOX:8090 # point it at your copilot (saved to ~/.ant/config.json)
ant login dk-xxxxxxxx # the copilot requires an API key (dk- prefix); ant refuses without one
ant # interactive session: banner + prompt
ant "what is listening on this server?" # one-shot
ant status # connection + model health
Commands
ant interactive REPL
ant "<prompt>" one-shot
ant connect <url> save the copilot endpoint
ant login <dk-key> save an auth token (sent as Bearer)
ant logout remove the saved key
ant status connection + model health
ant new | ant forget archive / clear conversation memory
ant audit verify <file> verify a hash-chained audit bundle LOCALLY (offline governance)
ant version
In the REPL, slash commands: /connect /login /logout /model /status /save [path] /new /sessions /resume <id> /forget /audit verify <file> /version /help /exit.
Governance: verify an audit bundle offline
A governed copilot (antahkarana 4.0 platform) can export a signed, hash-chained audit bundle.
ant audit verify <bundle.json> recomputes the whole chain on your machine — no trust in the box
that produced it, no dependencies — and if a record was altered it tells you the exact index where the
chain breaks (exit code 1, so it drops straight into CI):
ant audit verify audit-bundle.json
# ✓ audit chain intact — 128 record(s), hashes verify end-to-end
# ✗ audit chain BROKEN at record index 41 (tamper localized)
What you can ask
what OS is this and what's listening on its ports?→ runs read-only, reportscreate a file /tmp/demo.txt→ proposes it, asks [y/N], runs only if you approverm -rf /tmp/x→ hard-blocked by the control ringassess example.com→ passive web-recon → prioritized reportsummarize this file /path/to/notes.md→ reads a LOCAL file on your machinewrite the summary to a file ~/Desktop→ saves LOCALLY as plain text, prints the path
Features (0.5.0)
- Offline audit verification —
ant audit verifychecks a hash-chained audit bundle locally, zero-dependency, and localizes any tamper to the exact record index (matches the box's own verifier). - Multi-tenant aware
status— shows tenant/tier and governed-fleet size when the box reports them. - API-key auth — refuses with "API key required" unless a
dk-key is set. - Live progress — a "thinking…/running " spinner while the agent works (TTY only).
- Memory across runs — your conversation persists in
~/.ant/session.json, soantremembers what you did;/newarchives and starts fresh,/sessions+/resumerevisit past ones,/forgetclears. - Local file read — paths you mention are read on YOUR machine and inlined for the copilot.
- Local file write — when you ask it to save/write, the reply is written locally as clean text (not
markdown); give a folder/path or it defaults to
./ant-output-<time>.txt, and the path is printed.
How it works
ant is a thin client over the copilot's /api/chat — the model (e.g. Qwen2.5-14B), the governed run_shell,
the web-recon tools, and the control ring all live on the box (or a remote SSH target the copilot is pointed at).
The box governs and audits every command; local file read/write happens on your own machine by the CLI.
Requires a running Antaḥkaraṇa copilot (see ../copilot/).
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 antahkarana_cli-0.5.0.tar.gz.
File metadata
- Download URL: antahkarana_cli-0.5.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cb931c1577a763d78e0b196511605a68382630cade27186d7574a672bb51b77
|
|
| MD5 |
cc1241e5ce5fea041a2b136fa6d33540
|
|
| BLAKE2b-256 |
9dd8b1f9d52e07cfdeba22f0a2a7229156cfa1c728a9c1b986fcfab3b960420b
|
File details
Details for the file antahkarana_cli-0.5.0-py3-none-any.whl.
File metadata
- Download URL: antahkarana_cli-0.5.0-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
318cea7e5006ebd1157e91880c5daaa159e87722be7020a2891a3da0c924d848
|
|
| MD5 |
d0e8c98551678dcb080be08a27dfc4bb
|
|
| BLAKE2b-256 |
7c5862c897bbdba186dc6086f850703219f99f409a954f424853a2686d7eeba8
|