Skip to main content

A CLI tool for AI-assisted coding using Triton LLM backend

Project description

Kubrick CLI

An AI-assisted coding CLI tool powered by your own Triton LLM backend. Like Claude Code, but self-hosted.

Installation

Local Installation

pip install -e .
kubrick

Docker

cd /path/to/your/project
docker run --rm -it \
  --network host \
  -v ${HOME}:/home/kubrick \
  -v ${PWD}:/workspace \
  -v /etc/localtime:/etc/localtime:ro \
  -v /etc/timezone:/etc/timezone:ro \
  rcland12/kubrick-cli

Quick Start

# Basic usage
kubrick

# Custom Triton server
kubrick --triton-url my-server:8000

# Load previous conversation
kubrick --load 20240118_143022

Requirements

  • Python 3.8+
  • LLM Provider (choose one):
    • Triton Inference Server with streaming LLM model (default: http://localhost:8000)
    • OpenAI API (GPT-4, GPT-3.5-turbo, etc.)
    • Anthropic API (Claude models)

Documentation

  • WIKI.md - Complete features, commands, and usage guide
  • PROVIDERS.md - Multi-provider setup (Triton, OpenAI, Anthropic)
  • TRITON.md - Triton backend setup and requirements
  • TESTING.md - Testing guide and CI/CD setup
  • DOCKER.md - Docker setup and troubleshooting

Configuration

Config stored at ~/.kubrick/config.json. Override with environment variables:

export TRITON_URL=localhost:8000
export TRITON_MODEL_NAME=llm_decoupled

Development

Install Development Dependencies

pip install -e ".[dev]"

Run Tests

# Run all tests
pytest

# Run with coverage
pytest --cov=kubrick_cli --cov-report=term-missing

# Run specific test file
pytest tests/test_tool_executor.py -v

See TESTING.md for detailed testing documentation.

Code Quality

# Format code
black kubrick_cli tests

# Check linting
flake8 kubrick_cli

License

MIT License - See LICENSE

Project details


Download files

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

Source Distribution

kubrick_cli-0.1.3.tar.gz (44.4 kB view details)

Uploaded Source

Built Distribution

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

kubrick_cli-0.1.3-py3-none-any.whl (43.9 kB view details)

Uploaded Python 3

File details

Details for the file kubrick_cli-0.1.3.tar.gz.

File metadata

  • Download URL: kubrick_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 44.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kubrick_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ca128c123765c50d8c8d7d7407ad56c6d434f8113f751b9c17da94aa1b814cf1
MD5 e5769d787168af9895f0dd99444f7a2a
BLAKE2b-256 a6b3aafb521b359f7873f7e1dd08f59f5554c53a8b184b0e31427729815cfd76

See more details on using hashes here.

File details

Details for the file kubrick_cli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: kubrick_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 43.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kubrick_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa03b1f046308b7f0d399905734727d95c60f66962ddeaa86e2d1c63f1648f98
MD5 15c38fc399e82656364da742c64762a9
BLAKE2b-256 e05f99cf2d723feec9c501b07ea87b44c96b078076b0df234330a6c7c702b480

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