Skip to main content

An AI-powered shell that understands natural language and macros

Project description

Cliara

An AI-powered shell that understands natural language and macros.

PyPI version Python 3.8+


What is Cliara?

Cliara wraps your existing shell (bash, zsh, PowerShell, cmd) and adds:

Feature Description
Natural language ? <query> — describe what you want, get shell commands
Cliara Cloud Sign in with GitHub, 150 free queries/month, no API key
Macros Create, edit, run reusable command sequences
Semantic history ? find when I fixed the login — search past commands by meaning
Smart push push — auto-commit message, branch detection, one command
Smart deploy deploy — auto-detect Vercel, Netlify, Docker, PyPI, and deploy
Safety checks Destructive commands show a diff preview before running
Fix failed commands ? fix — AI suggests corrections after a command fails

All your normal commands work unchanged. Cliara is a thin layer on top of your shell.


Installation

Option 1: pipx (recommended)

Best for CLI tools — installs in an isolated environment and adds to PATH automatically.

pip install pipx
pipx ensurepath   # Add pipx bin to PATH (restart terminal if needed)
pipx install cliara

Option 2: pip

pip install cliara

If cliara isn't recognized, use:

python -m cliara.main

Option 3: From source (development)

git clone https://github.com/HreemPandya/cliara-app.git
cd cliara-app
pip install -e .

Optional Dependencies

To enable PostgreSQL support, install with:

pip install cliara[postgres]

First Run / Setup

  1. Start Cliara: cliara
  2. First time? A browser opens for GitHub login. Authorize once.
  3. Done. Your token is saved to ~/.cliara/token.json and loads automatically on every start.

Authentication / Cloud Login Flow

  • The OAuth login flow opens your browser to sign in with GitHub.
  • Once authenticated, your token is stored at ~/.cliara/token.json.

Alternative: Bring Your Own API Key

Prefer Groq, Gemini, Ollama, or OpenAI? Run setup-llm inside Cliara to configure. Free options include Groq and Google AI Studio.


Usage

Normal Commands (Pass-Through)

Just type commands as usual - they go straight to your shell:

cliara:proj  ls -la
cliara:proj  cd myproject
cliara:proj  git status
cliara:proj  npm install

Natural Language Commands

Use ? prefix for natural language:

cliara:proj  ? list files in this directory
cliara:proj  ? kill process on port 3000
cliara:proj  ? find when I ran the deploy
cliara:proj  ? fix                    # Fix the last failed command

Macros

cliara:proj  macro add build          # Create a macro
cliara:proj  build                    # Run it
cliara:proj  macro save last as test  # Save last command as macro

Smart Commands

cliara:proj  push                     # Smart push (auto-commit message + branch)
cliara:proj  deploy                   # Smart deploy (auto-detect project type)

Help

cliara:proj  help                     # Full command reference

Database Setup and Migration

If using PostgreSQL as your backend, follow these steps:

  1. Install PostgreSQL (see PostgreSQL Setup Guide).
  2. Create Database and User:
# Connect to PostgreSQL
psql postgres

# Create database
CREATE DATABASE cliara;

# Create user
CREATE USER cliara WITH PASSWORD 'your_password_here';

# Grant privileges
GRANT ALL PRIVILEGES ON DATABASE cliara TO cliara;

# Exit
\q
  1. Install Python Dependencies:
pip install psycopg2-binary
  1. Configure Cliara:

Edit ~/.cliara/config.json:

{
  "storage_backend": "postgres",
  "postgres": {
    "host": "localhost",
    "port": 5432,
    "database": "cliara",
    "user": "cliara"
  }
}

Required Environment Variables

Copy .env.example to .env and fill in the values for your chosen provider. Only ONE LLM provider should be active at a time.

# ── Option A: OpenAI (cloud, requires API key) ────────────────────────────────
OPENAI_API_KEY=sk-proj-your-key-here

# ── Option B: Anthropic Claude (cloud, requires API key) ─────────────────────
ANTHROPIC_API_KEY=sk-ant-your-key-here

# ── Option C: Ollama (local, free, no key needed) ────────────────────────────
OLLAMA_BASE_URL=http://localhost:11434

Documentation


Troubleshooting

Issue Solution
cliara not recognized Use python -m cliara.main or install with pipx install cliara
Connection error Check network/firewall; try $env:CLIARA_GATEWAY_URL = "https://cliara-cloud-production.up.railway.app/v1"
Want BYOK instead Run setup-llm inside Cliara for Groq, Gemini, Ollama, OpenAI

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cliara-0.4.4.tar.gz (171.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cliara-0.4.4-py3-none-any.whl (183.6 kB view details)

Uploaded Python 3

File details

Details for the file cliara-0.4.4.tar.gz.

File metadata

  • Download URL: cliara-0.4.4.tar.gz
  • Upload date:
  • Size: 171.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for cliara-0.4.4.tar.gz
Algorithm Hash digest
SHA256 95a82c0cf9cc366815605017c13a2ad651b2ebfedd2ba87901d1bbc26ec57058
MD5 fb48dc117823b0aed93ab476067b5833
BLAKE2b-256 11b48c299cf4e5fdd9e0821be51aeb40d3564e46b2390b7729643ece7ca8d4de

See more details on using hashes here.

File details

Details for the file cliara-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: cliara-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 183.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for cliara-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 71518d84a8858dd39a7fd0e60e84601cef2afe73ec6d1eafafe00bebe87f44d3
MD5 c7a1022ee56bccc471c948132a48816a
BLAKE2b-256 0f711dad023cd235b6335c6c7526081b30b417b8a8a7e79b06623e73ef70f3d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page