Skip to main content

AI Toolkit CLI powered by OpenRouter

Project description

ai-toolkit-cli

AI Toolkit CLI is a small Typer-based command-line app for AI-assisted terminal workflows. It exposes a single entry point named ai and routes into the chat, code, and summarize command groups.

Features

  • Fast command-line access through the ai launcher
  • OpenRouter-backed chat completions
  • Separate command groups for chat, code generation, and summarization
  • Simple environment-driven configuration

Installation

Create a virtual environment and install the project in editable mode:

python -m venv .venv
.venv\Scripts\activate
python -m pip install --upgrade pip
pip install -e .

After installation, verify the CLI loads:

ai --help

Configuration

The client reads OPENROUTER_API_KEY from the environment. Store it in a local .env file so it is loaded automatically at runtime:

OPENROUTER_API_KEY=your_openrouter_key_here

Do not commit .env or .pypirc files.

Usage

The project currently exposes these command groups:

  • ai chat
  • ai code
  • ai summarize

Use ai --help to see the available subcommands and options for each group.

Project Layout

  • ai_toolkit/main.py - Typer application and command registration
  • ai_toolkit/commands/ - command group modules
  • ai_toolkit/core/ - OpenRouter client helpers and shared logic
  • install.ps1 and install.sh - convenience install scripts

Publishing

The package metadata is defined in pyproject.toml, including the console script entry point and dependency list. Build artifacts such as dist/ and *.egg-info/ are already ignored for local development.

Notes

The repository is still lightweight by design. Add command examples and screenshots here as the CLI grows.

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

ai_toolkit_cli-1.1.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

ai_toolkit_cli-1.1.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file ai_toolkit_cli-1.1.1.tar.gz.

File metadata

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

File hashes

Hashes for ai_toolkit_cli-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7b0dbb801ce69372ebf4c94b55c9e31ac372ab9b5274f8934ddda8f9850aa97c
MD5 190fda90f82d62b790f1acee13d3961d
BLAKE2b-256 6c0b3a2cca691b7931ebafbbd226b8c9b3c0a6bebbdc0021a669cde93c0ab6b2

See more details on using hashes here.

File details

Details for the file ai_toolkit_cli-1.1.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ai_toolkit_cli-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4106e5520fc38b1fe5fdce307c11cd7c8c51b11e314dc36936325819a14e4c5d
MD5 9412b6ba675b34b1f8a062a31299d05b
BLAKE2b-256 cb16b63c375bc316320bf7798d0f9a666f684e6ae0ead0a3a12aaf4d5bc0ada9

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