Skip to main content

🚀 QUASAR - AI-powered CLI code editor with agentic capabilities

Project description

🚀 QUASAR - AI-Powered CLI Code Editor

An intelligent command-line code editor that can understand your codebase, generate code, fix bugs, and execute tasks using AI.

📚 Documentation

Installation

pip install quasar-ai

Setup API Keys

IMPORTANT: You must provide your own API keys. QUASAR does not include any API keys.

Option 1: Using .env file (Recommended)

Create a .env file in your project directory:

# Groq (recommended - fast inference)
GROQ_API_KEY_1=gsk_your_key_here
GROQ_API_KEY_2=gsk_your_second_key_here

# Cerebras
CEREBRAS_API_KEY_1=csk_your_key_here
CEREBRAS_API_KEY_2=csk_your_second_key_here

# Ollama runs locally - no API key needed
# Default: http://localhost:11434

# Web Search (optional but recommended)
# QUASAR has multiple web tools with fallback support
# Get free key at: https://tavily.com
TAVILY_API_KEY=tvly_your_key_here

Option 2: Using Environment Variables

# Groq
export GROQ_API_KEY_1="gsk_your_key_here"
export GROQ_API_KEY_2="gsk_your_second_key_here"

# Cerebras
export CEREBRAS_API_KEY_1="csk_your_key_here"

Multiple Keys

You can add multiple keys per provider (e.g., GROQ_API_KEY_1, GROQ_API_KEY_2, GROQ_API_KEY_3). If a key hits rate limits, QUASAR automatically rotates to the next available key.

Get free API keys:

Usage

Interactive Mode (REPL)

quasar
# or
quasar --interactive

Single Command

quasar "create a hello.py file that prints Hello World"
quasar "explain main.py"
quasar "fix the bug in utils.py"
quasar "list files in current directory"

Specify Workspace

quasar --workspace /path/to/project "add tests for api.py"

Custom Model Selection

By default, QUASAR automatically selects the best model. You can override with --model:

quasar --model cerebras/qwen-3-32b "explain this code"
quasar --model groq/llama-3.3-70b-versatile "create a REST API"
quasar --model ollama/qwen2.5-coder:7b "fix the bug"

Project Configuration (.quasar/)

On first run, QUASAR creates a .quasar/ directory in your workspace with project-specific configuration:

.quasar/
├── context.md    # Your project rules & preferences
├── memory.json   # Session history & recent files
├── mcp.json      # MCP server configuration
├── hooks/        # Custom lifecycle hooks (templates provided)
└── backups/      # Automatic file backups

context.md

Customize QUASAR's behavior for your project by editing .quasar/context.md:

  • Project Description: Help QUASAR understand your project goals
  • Code Style: Your preferred conventions (type hints, naming, etc.)
  • Important Files: Key files QUASAR should be aware of
  • Project Rules: Custom rules for QUASAR to follow

hooks/

Add custom Python hooks to control QUASAR's behavior:

  • PRE_TOOL_USE: Run before any tool execution
  • POST_TOOL_USE: Run after tool execution
  • ON_COMPLETE: Run when task completes

Templates are provided in .quasar/hooks/ - rename .template files to .py to activate.

mcp.json

QUASAR supports Model Context Protocol (MCP) for extending tool capabilities with external servers.

{
  "mcpServers": {
    "my-server": {
      "command": ["python", "my_mcp_server.py"],
      "description": "Custom MCP server"
    }
  }
}

Backup & Recovery

QUASAR automatically backs up files before modifying or deleting them.

  • Location: .quasar/backups/
  • Auto-cleanup: Last 50 backups kept
  • Restore: Ask QUASAR to "list backups" or "restore backup"

Security

QUASAR blocks access to sensitive files:

  • .env files (all variants)
  • SSH keys (.ssh/id_rsa, etc.)
  • AWS credentials (.aws/credentials)
  • Certificates (.pem, .key, .p12, .pfx)

Updating

pip install --upgrade quasar-ai

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

quasar_ai-2.0.0.tar.gz (82.0 kB view details)

Uploaded Source

Built Distribution

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

quasar_ai-2.0.0-py3-none-any.whl (95.5 kB view details)

Uploaded Python 3

File details

Details for the file quasar_ai-2.0.0.tar.gz.

File metadata

  • Download URL: quasar_ai-2.0.0.tar.gz
  • Upload date:
  • Size: 82.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for quasar_ai-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a6a13bb967e0f72bd2062c315ca775650cfb0c5cfab48c7377beaf461cf075ee
MD5 390c5ec4af0a657c7177d6a3df69ee7d
BLAKE2b-256 e0f72b06cc050c05ac65e549d9726b4f6f2be1efdb6a9fc1d301bee9d7344d7c

See more details on using hashes here.

File details

Details for the file quasar_ai-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: quasar_ai-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 95.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for quasar_ai-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47805cdfbcce03769644d77b83666d959d9fba1bb9735a876a0132c79cd6a042
MD5 756ea87213ea88740a6394a249646e87
BLAKE2b-256 8a0d5bb25684d21dd2b4934b81bb35e269abc3e6e2517f13a5ef4e5d7a48c66b

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