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

Available from Docker Hub or GitHub Container Registry:

cd /path/to/your/project

# From Docker Hub
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

# From GitHub Container Registry
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 \
  ghcr.io/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.4.tar.gz (44.6 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.4-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kubrick_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 44.6 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.4.tar.gz
Algorithm Hash digest
SHA256 62b61f442934985623d772cc6fb778096f1be86a7124317d27b02a3bc6fdd06c
MD5 8924a6c0859d4410b135a34993ca95ec
BLAKE2b-256 328641efbb167bbf87194a8fa1efbe8a3f389f00d940328483c652ca45ce030d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kubrick_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 44.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bb3b78870670132c0bed4f3b45f172f63962b4ad0cc44a9c0b80ad49af67e156
MD5 02c0071e3507b7bac8436d332002d8aa
BLAKE2b-256 77d8077f6d859760820f6179cc5b3e9e1e36851d0c3349de8950bd1b1cb742ff

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