clob
Universal AI in your terminal.
clob is an open-source universal AI terminal platform with a modern TUI. Connect any AI provider, stream responses, manage sessions, and build AI workflows — all from your terminal.
+----------------------------------------------------------+
| clob Sat May 17 12:00:00 |
+---------------------------+------------------------------+
| clob v0.2 | openrouter › gpt-4o-mini |
| | 👁 vision 🔧 tools |
| 💬 Fix the auth bug +------------------------------+
| 💬 Write unit tests | ▶ You |
| 💬 Docker setup help | @file main.py explain this |
| 💬 Explain async/await | |
| | ◆ AI |
| | The `main.py` file defines |
| | your Typer CLI entry point. |
| | Here's a breakdown... |
| [ + New Chat ] | |
+---------------------------+------------------------------+
| Type a message… @file, @dir, @workspace, Ctrl+P |
+----------------------------------------------------------+
| clob v0.2 │ openrouter › gpt-4o-mini │ ● ready |
+----------------------------------------------------------+
Features
- Modern TUI — Textual-powered UI with sidebar, streaming chat, command palette (
Ctrl+P) - Agentic Workflows — Planner, Executor, Coder, and Git agents with tool use
- Universal Providers — Anthropic, OpenRouter, Groq, NVIDIA, Ollama, OpenAI-compatible
- Workspace Context —
@file main.py,@dir src/,@workspaceinject context into prompts - Image Generation — Generate images directly from the chat with
/image - MCP Support — Connect to Model Context Protocol servers for external tools
- Analytics — Token counts and estimated cost tracked live per session
- Persistent Memory — SQLite-backed sessions, messages, full-text search
- Themes — dark, light, cyberpunk, nord + custom user themes
- Sandbox Execution — Safe shell with
SAFE/RESTRICTED/FULLpermission levels - Cross-platform — Linux, macOS, Windows
Installation
pip (all platforms)
pip install clob
Docker
docker run -it --rm \
-e OPENROUTER_API_KEY=$OPENROUTER_API_KEY \
ghcr.io/thetuxuser/clob:latest
From source
git clone https://github.com/thetuxuser/clob
cd clob
pip install -e .
Quick Start
# Set API key
export OPENROUTER_API_KEY="sk-or-..."
# Launch TUI
clob
# Single message
clob chat "Explain async/await in Python"
# Use Groq (fast inference)
clob chat "Hello" --provider groq --model llama3-8b-8192
# Check setup
clob doctor
Provider Setup
Set API keys as environment variables:
export OPENROUTER_API_KEY="sk-or-..."
export GROQ_API_KEY="gsk_..."
export NVIDIA_API_KEY="nvapi-..."
Or configure ~/.config/clob/config.toml:
[default]
provider = "openrouter"
model = "openai/gpt-4o-mini"
[providers.openrouter]
base_url = "https://openrouter.ai/api/v1"
api_key = "env:OPENROUTER_API_KEY"
[providers.groq]
base_url = "https://api.groq.com/openai/v1"
api_key = "env:GROQ_API_KEY"
# Named profiles
[profiles.work]
provider = "openrouter"
model = "anthropic/claude-sonnet-4"
[profiles.local]
provider = "ollama"
model = "llama3"
Custom OpenAI-Compatible Provider
[providers.my-provider]
base_url = "https://api.example.com/v1"
api_key = "env:MY_API_KEY"
chat_endpoint = "/chat/completions"
Workspace Context
Inject files and directories directly into your prompts:
@file main.py explain this code
@dir src/ what does this module do?
@workspace give me an overview of this project
TUI Keyboard Shortcuts
| Key | Action |
|---|---|
Ctrl+P |
Command palette |
Ctrl+N |
New chat session |
Ctrl+S |
Settings |
Ctrl+U |
Usage / token analytics |
Ctrl+F |
Search memory |
Ctrl+B |
Toggle sidebar |
Ctrl+L |
Clear chat |
Ctrl+Q |
Quit |
Enter |
Send message |
Escape |
Focus input |
CLI Commands
clob # Launch TUI
clob chat "message" # Send a message
clob chat "msg" -p groq # Use specific provider
clob models # List available models
clob providers # List configured providers
clob config --show # Show config
clob config --edit # Edit in $EDITOR
clob memory --sessions # List sessions
clob memory --search query # Search history
clob session --export 5 # Export session #5 as markdown
clob session --export 5 -f json # Export as JSON
clob ollama list # List local Ollama models
clob ollama pull llama3 # Pull a model
clob workspace stats # Show workspace file stats
clob workspace index # Index current workspace
clob theme list # List themes
clob theme set cyberpunk # Set theme
clob plugins list # List plugins
clob plugins install <pkg> # Install a plugin
clob usage # Show usage report
clob doctor # Diagnose installation
Themes
clob theme list
# dark, light, cyberpunk, nord
clob theme set nord
Place custom .tcss files in ~/.config/clob/themes/ to create your own themes.
Ollama (Local Models)
# Start Ollama
ollama serve
# List local models
clob ollama list
# Pull a model
clob ollama pull llama3
# Use in TUI — select "ollama" as provider
Docker
# Basic
docker run -it --rm \
-e OPENROUTER_API_KEY=$OPENROUTER_API_KEY \
ghcr.io/crishacks/clob:latest
# With Ollama
docker-compose --profile ollama up
Plugin Development
Create ~/.config/clob/plugins/my-plugin/plugin.py:
from clob.plugins import Plugin
class ClobPlugin(Plugin):
name = "my-plugin"
version = "1.0.0"
description = "My custom clob plugin"
def on_load(self, app) -> None:
print("Plugin loaded!")
Development
git clone https://github.com/crishacks/clob
cd clob
pip install -e ".[dev]"
pytest tests/ -v # Run tests (36 tests)
ruff check clob/ # Lint
black clob/ # Format
clob doctor # Check setup
See CONTRIBUTING.md for full contributor guide.
Documentation
| Doc | Description |
|---|---|
| CONTRIBUTING.md | Contributor guide |
| SECURITY.md | Security policy and reporting |
| CODE_OF_CONDUCT.md | Community standards |
| CHANGELOG.md | Version history |
| AGENTS.md | Agent architecture |
| CLAUDE.md | AI assistant context file |
Roadmap
- Anthropic Claude native provider
- MCP (Model Context Protocol) support
- Multi-agent workflows
- Image generation in TUI
- Voice input
- Theme marketplace
- VS Code extension
Contributing
PRs welcome! See CONTRIBUTING.md.
License
MIT — see LICENSE.
Metadata
Release files for clob 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clob-0.4.0.tar.gz | 59.1 kB | With provenance | Details for clob-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clob-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for clob-0.4.0-py3-none-any.whl |
Total release size: 122.1 kB
Release files / clob-0.4.0.tar.gz
| Download URL | clob-0.4.0.tar.gz |
|---|---|
| Size | 59.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5b86e3439184fb1539c6359014b7c37b3eca7b19e974e57f448d853f5a7d054
|
|
BLAKE2b-256 checksum How to use checksums |
2c1d54624df0a7b01971d7740ed39ea5769616c54f356c06417f650cd92fd15b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logRelease files / clob-0.4.0-py3-none-any.whl
| Download URL | clob-0.4.0-py3-none-any.whl |
|---|---|
| Size | 63.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68c3519b7bebd7b98806c3d6da16e480f90b1dadd0aeff5928644d3bc7618b03
|
|
BLAKE2b-256 checksum How to use checksums |
ad7cfee3927394d06523f8f0dfb6742a94741d5330cd554e1e8ae34d7149c01d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logSecurity for clob 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for clob-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.