Share
What is clai?
clai is an open-source command-line AI tool for querying OpenAI, Anthropic, Google, Mistral, DeepSeek, xAI, Ollama and OpenRouter models from your terminal. It ships as a single Go binary of about 16 MB that starts in milliseconds, works as a Unix filter for any model and, given a profile, becomes a full agent. It runs on your own API keys, with tools switched off by default.
What can you do with clai in the terminal?
The quickest win is Unix pipes: feed it a server log and ask for an incident summary, or chain two calls to rewrite the output. With tools enabled it can run commands, apply patches and run Go tests. It supports saved profiles (say, one that explains diffs), JSON response formats another program can parse, Agent Skills, MCP servers, image input and image generation rendered right in the terminal.
How does clai store and sync conversations?
Every conversation is saved as plain JSON, and clai can import sessions from Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Qwen, Antigravity or pi. clai cloud syncs config and conversations across machines git-style, pulling and committing only when you choose, and the web view shows what filled the context, each step, tool errors and the tokens and spend recorded. A public Hub lets people share and rate profiles, skills and themes.
Who is clai for?
- Developers and sysadmins who live in the terminal and want AI inside their scripts.
- Anyone juggling several LLM providers or local models through Ollama.
- Teams that want to audit context and token usage per agent session.
clai pros and cons
- Pros: MIT license, a lightweight binary, nothing sent to clai.chat unless you sync or publish, and broad provider support.
- Cons: you need your own key for each provider, it targets terminal users, and synced conversations are not end-to-end encrypted.
It is built by Lorentz in Tampere, Finland, and the site embeds a real in-browser terminal compiled to WASIX so you can try it before installing.
clai features and use cases
How to use clai
clai FAQ
What is clai?
clai is an open-source terminal AI client written in Go that queries models from several providers and can work as an agent.
Is clai free?
The command-line tool is free and open source; only conversation sync costs money, as shown in the pricing section.
Which models can I use with clai?
It works with OpenAI, Anthropic, Google, Mistral, DeepSeek, xAI, OpenRouter and local models through Ollama, always with your own keys.
Do I need an account?
Not to use the CLI. An account is only needed to publish or rate on the Hub and to sync between machines.
Does clai send my prompts to its servers?
Not when used locally: prompts go straight to the provider you configure, and clai.chat only receives what you sync or publish.
Does clai support MCP?
Yes. It supports MCP servers and Agent Skills, which you enable explicitly because tools are off by default.
Can I import sessions from other coding agents?
Yes. It imports transcripts from Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Qwen, Antigravity and pi so you can review them in one place.
Are synced conversations encrypted?
They sit in Cloudflare R2, encrypted at rest but not end to end, so keep secrets out of anything you sync.
Which systems does it run on?
It installs with go install or a shell script, covering Unix-like systems, and the website also runs it in the browser through WASIX.
What are some clai alternatives?
This directory lists Aider, Claude Code and Codex as terminal coding assistants, which focus more on writing code than on filtering text.
clai pricing and plans
Reference price: 1 USD · usage based. Source · Verified: November 30, 2026
Local CLI: free forever, open source (MIT), with your own keys or Ollama and no account.
Hub and config sync: free, no card, up to 1 GB of config.
Conversation sync: USD 1 per started GB per month, billed on the monthly peak (minimum USD 1 when storing anything; 10 GB = USD 10).
- Model usage is paid separately to each provider with your own key.
Checked on: 30/11/2026.
clai Screenshots


clai user reviews
Write a review
Checking your session...
clai Reviews
Loading reviews...
clai alternatives

Modelflare
Modelflare is an AI API gateway by Havenbyte LLC: one OpenAI-compatible key gives third-party access to models it lists as GPT, Claude and Gemini.






