LLM Rust — AI skill for Claude Code
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
cmdsubcommand - 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
Related Skills
Crustoxy
Unlimited coding with Claude Code on ANY LLM. A Blazing-Fast Rust proxy featuring auto-routing and load balanc
Hackathon Team Coordinator
A model-agnostic Agent Skill for safe, fast teamwork during hackathons and rapid engineering sprints.
Polyglot Refactor
Semantic, AST-safe multi-language code refactoring engine for AI agents and developers (Kotlin, Swift, TypeScr
Cersei
The Rust SDK for building coding agents. Tool execution, LLM streaming, graph memory, sub-agent orchestration,
Longe
A self-improving harness for any LLM, in one Rust binary. Persistent Lua REPL as the single tool, three-level
Singularmem
Singularmem is a local-first persistent memory layer for LLM-driven workflows built in Rust, SQLite, Typescrip
Related Agents
Bevy Rust Specialist
The Bevy Rust specialist owns Rust code quality in a Bevy project: ownership/borrowing, error handling, module
Deployment Strategist
Execute safe, fast deployments with progressive delivery and intelligent rollback automation.
Code Executor
Transcribes code or generated output from a complete, transcription-grade spec and verifies its own build. Dis