Skip to main content

henosis-cli: Chat client for Henosis server (ships client-executed tool support)

Project description

henosis-cli

Interactive command-line client for the Henosis multi-provider streaming chat backend. It supports OpenAI, Gemini, Anthropic, xAI (Grok), DeepSeek, and Moonshot Kimi via the Henosis server, and includes optional client-executed file/shell tools with approvals and sandboxing.

Key features

  • Interactive chat over SSE with usage/cost summaries
  • Model picker and per-turn controls (tools on/off, control level, reasoning effort)
  • Client approvals at Level 2 for write/exec operations (approve once/session/always)
  • Agent scope (safe host directory) when enabling tools in host mode
  • Optional web search controls for OpenAI models (domain allow-list, include sources, location hints)
  • Saves conversations to server threads and commits usage for billing where enabled

Install

  • pip: pip install henosis-cli
  • pipx (recommended): pipx install henosis-cli

Quick start

  • Run the CLI: henosis-cli
  • Default server: https://henosis.us/api_v2 (override with HENOSIS_SERVER or --server)
  • Dev server: henosis-cli --dev (uses HENOSIS_DEV_SERVER or http://127.0.0.1:8000)
  • Authenticate when prompted. Use /model to pick a model and /tools on to enable tools.

Common commands

  • /menu or /settings: Open settings menu
  • /model: Select a model (gpt-5, gemini-2.5-pro, grok-4-fast-reasoning, deepseek-chat, etc.)
  • /tools on|off|default: Toggle per-request tool availability
  • /fs workspace|host|default: Set filesystem scope (workspace = sandbox; host = Agent scope)
  • /hostbase : Set Agent scope root directory when fs=host
  • /level 1|2|3: Control level (1 read-only; 2 write/exec with approval; 3 no approvals)
  • /map on|off: Inject CODEBASE_MAP.md into your first message
  • /websearch on|off|domains|sources|location: Configure OpenAI web search options
  • /title : Name the current chat thread
  • /clear: Reset chat history
  • /login, /logout, /whoami: Auth helpers

Configuration

Local tools and sandboxing (optional)

  • The CLI can execute a safe subset of tools locally when the server requests client-side execution.
  • Tools include read_file, write_file, append_file, list_dir, apply_patch, run_command.
  • At Level 2, destructive tools and command executions prompt for approval (once/session/always).
  • Host scope can be constrained to an Agent scope directory (set via /hostbase); workspace scope is a safe sandbox.

Notes

  • Requires Python 3.9+
  • The CLI ships with rich and prompt_toolkit for a nicer UI by default.
  • The reusable local tools library is available as a module (henosis_cli_tools).

Build and publish (maintainers)

  • Bump version in pyproject.toml
  • Build: python -m pip install build twine && python -m build
  • Upload to PyPI: python -m twine upload dist/*
  • Or to TestPyPI: python -m twine upload --repository testpypi dist/*

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

henosis_cli-0.2.2.tar.gz (72.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

henosis_cli-0.2.2-py3-none-any.whl (72.3 kB view details)

Uploaded Python 3

File details

Details for the file henosis_cli-0.2.2.tar.gz.

File metadata

  • Download URL: henosis_cli-0.2.2.tar.gz
  • Upload date:
  • Size: 72.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for henosis_cli-0.2.2.tar.gz
Algorithm Hash digest
SHA256 de1ffaca5a32271cf7e4a422a3b4e400a30ed8509c0c293a0a817337f2b9fddc
MD5 05cbdeffd46ce38d627ad0b73de631d9
BLAKE2b-256 0682ef88f9a5719222302da5fa50a201ebae5a3652a169a6ffb0000a66cef4c2

See more details on using hashes here.

File details

Details for the file henosis_cli-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: henosis_cli-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 72.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for henosis_cli-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49dd4cf0b08e7ddc3a9a47050072a8fe826407c07bd7bcff2122765852f7cf30
MD5 0c3e8ca089d836943a03638cbd6a1a90
BLAKE2b-256 6f2f3b5fad92555899ba25582941b73841a8c9e1e2c12f1773e3c5deacf8820e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page