shuv1337

LLM Rust — AI skill for Claude Code

AI community

A fast, memory-safe reimplementation of the LLM CLI tool in Rust.

How to install LLM Rust

This entry records only its repository, not the path inside it, so there is no exact command to give. Open shuv1337/llm-rust and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What LLM Rust does

A fast, memory-safe reimplementation of the LLM CLI tool in Rust.

Alternatives in AI

  • Codeseek — Rust-powered code intelligence CLI for AI coding agents 764 ★
  • Memory Forge Rs — Stop resetting satisfying AI chats — edit the memory instead 474 ★
  • Ataru — High-performance AI memory retrieval for local agent history — a Rust search core (SDK / API / JSON CLI) plus 351 ★

README

LLM - Rust Edition

A fast, memory-safe reimplementation of the LLM CLI tool in Rust.

What this is

This is a Rust port of the Python `llm` CLI tool. It provides:

  • Fast performance with Rust's zero-cost abstractions
  • Memory safety without garbage collection
  • Compatibility with existing workflows
  • Support for multiple LLM providers

Features

Currently implemented

  • Multi-provider support (OpenAI, Anthropic, OpenAI-compatible endpoints)
  • Streaming responses with real-time token delivery
  • Key management for API credentials
  • Conversation tracking
  • Model catalog with aliases
  • Shell command generation via cmd subcommand
  • Logging and usage analytics

In progress / next up

  • Python plugin bridge for existing plugins
  • Expanded third-party plugin command/model registration parity
  • Broader provider coverage and model-catalog refresh workflows
  • Continued tool-calling and structured-output parity hardening

Getting Started

Prerequisites

  • Rust 1.70+ (install from rustup.rs)
  • API keys for your chosen providers

Installation

git clone https://github.com/simonw/llm
cd llm-rust
cargo build --release
cargo run -- --help

Usage Examples

Basic prompts

# Ask a question
cargo run -- "What is the meaning of life?"

# Use a specific model
cargo run -- --model gpt-4 "Explain quantum computing"

# Disable streaming
cargo run -- --no-stream "Tell me a joke"

Key management

# Set your OpenAI key
cargo run -- keys set openai --value sk-...

# List stored keys
cargo run -- keys list

# Show key storage location
cargo run -- keys path

Command generation

# Generate shell commands
cargo run -- cmd "find all TypeScript files modified today"

# Auto-execute in non-interactive mode
LLM_CMD_AUTO_ACCEPT=1 cargo run -- cmd "show git status"

Model management

# List available models
cargo run -- models list

# Set default model
cargo run -- models default