clai
clai is a command-line AI tool that lets you query multiple AI providers from your terminal. It is a single Go binary that works as a Unix filter for any model and as a full agent when given a profile, using your own API keys with tools off by default.
About clai
clai
clai ("Control your AI") is a bring-your-own-key command line AI tool distributed as one 16 MB Go binary that the page says starts in about 11 ms. It can query OpenAI, Anthropic, Google, Mistral, DeepSeek, xAI, Ollama, and OpenRouter from the terminal, running only the providers you configure. It supports Unix pipes, profiles, Agent Skills, MCP tools, response formats such as JSON output, image input and image generation, and conversation saving. The page also describes an optional clai.chat hub for sharing and rating configurations, an optional cloud service for syncing config and storing conversations, and a live browser terminal demo. Clai is MIT licensed and can be installed with go install or a shell install script. On the user's machine, prompts go to the chosen model vendor with the user's own key; clai.chat receives data only when the user runs clai cloud, publishes to the hub, or loads a cchub profile.
Key features
- Query multiple AI providers: OpenAI, Anthropic, Google, Mistral, DeepSeek, xAI, Ollama, and OpenRouter
- Unix pipe support for chaining commands and filtering output
- Profiles for saved configurations
- Agent Skills support
- MCP tools support
- Tools off by default
- Response format option for structured output such as JSON
- Image input via the -img flag
- Image generation from a prompt via the photo command
- Saves conversations as plain JSON
- Config sync and conversation storage through optional clai cloud
- clai.chat hub for sharing and rating configs
- Single Go binary installable with go install or a shell script
- Bring-your-own-key, MIT licensed
Best suited for
- Developers who want AI assistance from the command line
- Analyzing logs and command output by piping them into a model
- Users who want to keep control of their own API keys and tools
- Users who want to share or reuse AI configurations via profiles or the hub
Pricing
Not stated on the website
Discussion
Used clai? Share what worked and what didn’t.
No comments yet. Start the conversation.