Install CLIO and get to a working first session quickly.
CLIO is a terminal-native AI coding tool. It runs in your shell, uses real tools to work with files and commands, and fits terminal-first workflows. This guide focuses on the fastest path from install to first use.
- Choose Your Install Path
- System Requirements
- Quick Installation
- Docker Installation
- Installation Options
- First-Time Configuration
- Verification
- Uninstallation
- Troubleshooting
- Platform-Specific Notes
- Next Steps
Most people should use one of these:
- Homebrew - easiest on macOS and Linux with Homebrew installed
- Standard install - best if you want
clioavailable system-wide - User install - best if you do not want to use
sudo - Docker - best if you want to try CLIO without installing Perl locally
If you already have GitHub Copilot, the fastest path after installation is:
clio --new
/api loginThen open any repository and give CLIO a real task.
| Platform | Status |
|---|---|
| macOS 10.14+ | Fully Supported |
| Linux (Ubuntu 18.04+, Debian 10+, Fedora 30+, Arch) | Fully Supported |
| Windows (WSL or Cygwin) | Experimental |
Perl 5.32+ (usually pre-installed on macOS/Linux):
perl --versionGit 2.0+:
git --versionCLIO uses only core Perl modules - no CPAN dependencies:
JSON::PP(core since 5.14)HTTP::Tiny(core since 5.14)MIME::Base64(core)File::Spec,File::Path(core)Time::HiRes(core)
You need at least one AI provider. See PROVIDERS.md for the full list.
Common choices:
- GitHub Copilot - easiest starting point, access to multiple models
- Local models - llama.cpp, LM Studio, or SAM
- API providers - OpenAI, Google, DeepSeek, OpenRouter, MiniMax, DashScope
brew tap SyntheticAutonomicMind/homebrew-SAM
brew install clio# Clone the repository
git clone https://github.com/SyntheticAutonomicMind/CLIO.git
cd CLIO
# Install system-wide
sudo ./install.sh
# Start CLIO
clio --newCLIO installs to /opt/clio with a symlink at /usr/local/bin/clio.
./install.sh --userInstalls to ~/.local/clio. Ensure ~/.local/bin is in your PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcRun CLIO in a container - no local Perl required:
docker run -it --rm \
-v "$(pwd)":/workspace \
-v clio-auth:/root/.clio \
-w /workspace \
ghcr.io/syntheticautonomicmind/clio:latest \
--newgit clone https://github.com/SyntheticAutonomicMind/CLIO.git
cd CLIO
./clio-container ~/projects/myapp| Tag | Description |
|---|---|
:latest |
Most recent stable release |
:YYYYMMDD.N |
Specific version |
:sha-XXXXXX |
Specific Git commit |
See SANDBOX.md for security details.
| Option | Command | Location |
|---|---|---|
| System-wide (default) | sudo ./install.sh |
/opt/clio |
| Custom directory | sudo ./install.sh /usr/local/clio |
/usr/local/clio |
| User install | ./install.sh --user |
~/.local/clio |
| No symlink | sudo ./install.sh --no-symlink |
/opt/clio (no PATH) |
| Custom symlink | sudo ./install.sh --symlink /usr/bin/clio |
Custom symlink path |
After installation, start CLIO:
clio --newThis is the easiest way to get started:
/api set provider github_copilot
/api login
# Browser opens -> authorize -> done/api set provider openai
/api set key sk-...your-key...
/config save# Ensure your local server is running first
/api set provider llama.cpp
# No key needed for local providers/api showFor detailed provider setup instructions, see PROVIDERS.md.
# Verify CLIO is in PATH
which clio
# Check help
clio --help
# Verify Perl modules
perl -MJSON::PP -e 'print "OK\n"'
perl -MHTTP::Tiny -e 'print "OK\n"'clio --new --input "Hello, what's 2+2?" --exitInside a repository, try something like:
Read this project and explain how configuration is loaded.
Or:
Find the code path that handles authentication failures.
# Remove installation
sudo rm -rf /opt/clio
sudo rm /usr/local/bin/clio
# Remove user data (optional)
rm -rf ~/.clio# Use sudo for system install
sudo ./install.sh
# Or use user install
./install.sh --user| Platform | Install Command |
|---|---|
| macOS | brew install perl |
| Ubuntu/Debian | sudo apt-get install perl |
| Fedora/RHEL | sudo dnf install perl |
| Arch | sudo pacman -S perl |
Make sure ~/.local/bin is in your PATH:
export PATH="$HOME/.local/bin:$PATH"Add it to your shell profile if needed.
Perl is usually preinstalled. Homebrew installation is the easiest path.
Most distributions already include Perl and Git. Standard or user install both work well.
Use WSL for the smoothest experience. Native Windows support is improving, but WSL remains the better option for now.
- Read the User Guide for day-to-day usage
- Check PROVIDERS.md to configure other AI providers
- Explore FEATURES.md for a full tour of CLIO's capabilities
- Review SECURITY.md and SANDBOX.md if you want tighter controls