File management, content analysis, web research, and shell help โ all from a single command.
Pipe data in. Tell it what to do. Pipe results wherever you like.
Work with any LLM like a normal shell command: ai run "explain this", pipe data in via stdin, and pipe the response out wherever you need it. Bare ai starts an interactive session. The AI sees only what you give it โ no filesystem, no network, no shell unless you grant it โ and every capability beyond a plain answer is an explicit, independently gated choice. Local semantic memory is on by default and can be turned off with --no-memory.
Search the web through a configurable provider ladder (Brave, Tavily, Exa, Serper, SearXNG, or keyless DuckDuckGo/Google/Bing). Fetch any URL and convert HTML to readable text, all gated with URL allowlists.
Navigate, click, extract โ drive a stealth headless browser for JavaScript-heavy sites, login flows, and dynamic content. Requires web-fetch permission.
Read-only or read-write with fine-grained permissions. Paths are resolved (symlinks included) before policy, so deny rules inside an allowed tree hold. Policy files and interactive ask mode.
150+ built-in commands (grep, sed, awk, find, tar, curl, git, โฆ) run in-process via bashkit. Only external commands need allowlisting, and read/write policy still governs the files they touch.
Run external commands inside a session container (-X). Only the policy-granted paths are bind-mounted, and it gets no network unless web access is granted.
Facts and past exchanges are embedded locally (ONNX) and searched with sqlite-vec. Relevant hits are injected per message with a match score โ no API round-trips, no data leaving your machine.
ai dream distills conversations into durable facts, prunes stale transcripts, and reviews old entries. Run it on demand, automatically at session end, or schedule it.
Drop a SKILL.md into the skills folder and the model can load it on demand, along with any bundled scripts and docs. With skills.auto_create, ai dream can even author skills from your past sessions.
Conversations auto-saved to disk with the full tool history. Continue the newest one automatically, resume by date-aware name, fork on a provider/model change, or run stateless.
Connect external MCP servers via --tool URL or mcp.servers in the config. IDE integrations, database agents, API gateways โ a bad config entry warns and is skipped.
ai setup walks you through a provider and model (browsing the models.dev catalog), proves the connection, then lets the AI finish the config through a sandboxed, approval-gated edit.
Ask the agent about ai itself โ commands, flags, config keys, behavior โ and it answers from a built-in manual instead of guessing. Shell completions included (ai completions).
The AI, your data, nothing else. Perfect for questions, research, and content analysis.
ai setupEverything in Core, plus filesystem and shell access. The daily driver for power users.
The full arsenal. Web, skills, and maintenance. Unlock everything.
ai dream maintenanceOpen source & free forever 😉
One binary, any backend. Native OpenAI and Anthropic APIs, every OpenAI/Anthropic-compatible endpoint, and the full models.dev catalog. Configure once, switch anytime.
One command, no signup required.
Install as user (installs to ~/.bin, adds it to your $PATH)
$> curl -fsSL https://dswd.github.io/ai/install.sh | sh
Install system-wide (requires root, installs to /usr/local/bin)
$> curl -fsSL https://dswd.github.io/ai/install.sh | sudo sh -s -- --global
Prebuilt binaries for Linux and Windows. On macOS, build from source (cargo build --release).