Skip to main content

Terminal interface for chatting with your Onyx agent

Project description

Onyx CLI

Release CLI PyPI

A terminal interface for chatting with your Onyx agent. Built with Go using Bubble Tea for the TUI framework.

Installation

pip install onyx-cli

Or with uv:

uv pip install onyx-cli

Setup

Run the interactive setup:

onyx-cli configure

This prompts for your Onyx server URL and API key, tests the connection, and saves config to ~/.config/onyx-cli/config.json.

Environment variables override config file values:

Variable Required Description
ONYX_SERVER_URL No Server base URL (default: https://cloud.onyx.app)
ONYX_API_KEY Yes API key for authentication
ONYX_PERSONA_ID No Default agent/persona ID

Usage

Interactive chat (default)

onyx-cli

One-shot question

onyx-cli ask "What is our company's PTO policy?"
onyx-cli ask --agent-id 5 "Summarize this topic"
onyx-cli ask --json "Hello"
Flag Description
--agent-id <int> Agent ID to use (overrides default)
--json Output raw NDJSON events instead of plain text

List agents

onyx-cli agents
onyx-cli agents --json

Commands

Command Description
chat Launch the interactive chat TUI (default)
ask Ask a one-shot question (non-interactive)
agents List available agents
configure Configure server URL and API key
validate-config Validate configuration and test connection

Slash Commands (in TUI)

Command Description
/help Show help message
/clear Clear chat and start a new session
/agent List and switch agents
/attach <path> Attach a file to next message
/sessions List recent chat sessions
/configure Re-run connection setup
/connectors Open connectors in browser
/settings Open settings in browser
/quit Exit Onyx CLI

Keyboard Shortcuts

Key Action
Enter Send message
Escape Cancel current generation
Ctrl+O Toggle source citations
Ctrl+D Quit (press twice)
Scroll / Shift+Up/Down Scroll chat history
Page Up / Page Down Scroll half page

Building from Source

Requires Go 1.24+.

cd cli
go build -o onyx-cli .

Development

# Run tests
go test ./...

# Build
go build -o onyx-cli .

# Lint
staticcheck ./...

Publishing to PyPI

The CLI is distributed as a Python package via PyPI. The build system uses hatchling with manygo to cross-compile Go binaries into platform-specific wheels.

CI release (recommended)

Tag a release and push — the release-cli.yml workflow builds wheels for all platforms and publishes to PyPI automatically:

tag --prefix cli

To do this manually:

git tag cli/v0.1.0
git push origin cli/v0.1.0

The workflow builds wheels for: linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, windows/amd64, windows/arm64.

Manual release

Build a wheel locally with uv. Set GOOS and GOARCH to cross-compile for other platforms (Go handles this natively — no cross-compiler needed):

# Build for current platform
uv build --wheel

# Cross-compile for a different platform
GOOS=linux GOARCH=amd64 uv build --wheel

# Upload to PyPI
uv publish

Versioning

Versions are derived from git tags with the cli/ prefix (e.g. cli/v0.1.0). The tag is parsed by internal/_version.py and injected into the Go binary via -ldflags at build time.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

onyx_cli-0.1.2-py3-none-win_arm64.whl (5.7 MB view details)

Uploaded Python 3Windows ARM64

onyx_cli-0.1.2-py3-none-win_amd64.whl (5.7 MB view details)

Uploaded Python 3Windows x86-64

onyx_cli-0.1.2-py3-none-manylinux_2_17_x86_64.whl (5.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

onyx_cli-0.1.2-py3-none-manylinux_2_17_aarch64.whl (5.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

onyx_cli-0.1.2-py3-none-macosx_11_0_arm64.whl (5.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

onyx_cli-0.1.2-py3-none-macosx_10_12_x86_64.whl (5.7 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file onyx_cli-0.1.2-py3-none-win_arm64.whl.

File metadata

  • Download URL: onyx_cli-0.1.2-py3-none-win_arm64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for onyx_cli-0.1.2-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 80635c98fcd0827ed2d44f227d055d66215ef8bcff6a2b5746438d68f20dcd61
MD5 5688d3671c3a3e1f0b55fbf9031ef870
BLAKE2b-256 85e50c6810c9b4b1ea690b0c9459be27605096bec7b2f9fc21f192c0866b90f9

See more details on using hashes here.

File details

Details for the file onyx_cli-0.1.2-py3-none-win_amd64.whl.

File metadata

  • Download URL: onyx_cli-0.1.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for onyx_cli-0.1.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d782416051ae97d7f76cf1b9ed457d98dc1d19eef9c11a555fb57fd4a77ec696
MD5 148b642d4c20e57d50746f85a0d3c5c3
BLAKE2b-256 f93fa3ff0d6b16ef32f38e141dd520774259b6a5a5a23c26b06c374688f31494

See more details on using hashes here.

File details

Details for the file onyx_cli-0.1.2-py3-none-manylinux_2_17_x86_64.whl.

File metadata

  • Download URL: onyx_cli-0.1.2-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for onyx_cli-0.1.2-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 06ae27787fe8306a48c6a62e4f2116f32dce5b82cbfea83eb8b98540d0597b17
MD5 3bbc7774c8ec9f8e4cb350c378f623f3
BLAKE2b-256 4dacad7eeb110575b092b1f02d64eadcb9e4470f40389b7676cb11bb53187a92

See more details on using hashes here.

File details

Details for the file onyx_cli-0.1.2-py3-none-manylinux_2_17_aarch64.whl.

File metadata

  • Download URL: onyx_cli-0.1.2-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for onyx_cli-0.1.2-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 ebf7adf70465eb73e582f490a17a82231bf0b3ac406da51c4e8670092f4d7c25
MD5 20280073b889548603519022854e1a50
BLAKE2b-256 18db657d5cb079bac6164dc8df94225f1a915711b10a96855b11f2d78b07eaa6

See more details on using hashes here.

File details

Details for the file onyx_cli-0.1.2-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: onyx_cli-0.1.2-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for onyx_cli-0.1.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7293fd670424ba1804daf9a11bfbd0c4e702c72befa048b50dce96d4856024db
MD5 c939fce9cb91ea4c0766e61a9b6203a2
BLAKE2b-256 bf01400250f415f32e1ace8418ce97037dedb83762eb94da19b41d974e1c0887

See more details on using hashes here.

File details

Details for the file onyx_cli-0.1.2-py3-none-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: onyx_cli-0.1.2-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for onyx_cli-0.1.2-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 643fd1b4cd112188d11bc3672658038bb1801decb58755ede1b8445094859908
MD5 363f36819f1ae8b4ddfc2327dced0095
BLAKE2b-256 eb01da90002c0ebe09dfc2c020b91351eb4e7d3003de6d9d108ce3c46c2289da

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