XandAI - Multi-Provider AI Terminal Assistant with Interactive Code Execution
Project description
XandAI CLI
Terminal assistant that combines AI chat with command execution. Supports Ollama and LM Studio.
Installation
pip install xandai-cli
xandai --auto-detect
Usage
# Terminal commands
xandai> ls -la
xandai> git status
# AI questions
xandai> How do I optimize this code?
# Project planning
xandai> /task create a REST API
Providers
- Ollama - Local models
- LM Studio - GUI-based model management
xandai --provider ollama
xandai --provider lm_studio --endpoint http://localhost:1234
Commands
/task <description> # Project planning
/review # AI-powered code review
/web on # Enable web content integration
/help # Show all commands
/clear # Clear history
/status # System status
File Operations
XandAI can intelligently create and edit files with AI assistance:
Creating Files
Simply ask to create a file with a specific name:
xandai> create tokens.py with authentication functions
# AI generates complete code
# System detects filename automatically
💾 This looks like a complete python file. Save it? (y/N): y
📝 Filename: tokens.py
✅ File 'tokens.py' created successfully!
Editing Files
Edit existing files by name:
xandai> edit index.py adding a health endpoint
# AI reads current file content
# Generates complete updated version
✏️ Edit file 'index.py'? (y/N): y
✅ File 'index.py' updated successfully!
Smart Detection
The AI automatically:
- ✅ Reads files when editing (preserves existing code)
- ✅ Extracts filenames from your request
- ✅ Provides complete file content (never placeholders)
- ✅ Only prompts when you explicitly request file operations
Supported Formats
Works with any programming language:
xandai> create app.js with Express server
xandai> edit styles.css adding dark mode
xandai> create config.json with API settings
Code Review
AI-powered code review with Git integration. Analyzes your code changes and provides detailed feedback on security, quality, and best practices.
xandai> /review
# Automatically detects Git changes and provides comprehensive analysis
Web Integration
Automatically fetches and analyzes web content when you paste links:
xandai> /web on
xandai> How does this work? https://docs.python.org/tutorial
# Content is automatically fetched and analyzed
Development
git clone https://github.com/XandAI-project/Xandai-CLI.git
cd Xandai-CLI
pip install -e .
xandai
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xandai_cli-2.1.7.tar.gz.
File metadata
- Download URL: xandai_cli-2.1.7.tar.gz
- Upload date:
- Size: 6.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69a769ba114fa78096cc5e99e1733bc30fb6d2bf056d1aab6ed41cb5f1fbd375
|
|
| MD5 |
83d78a985f95a5e96861d4e319759680
|
|
| BLAKE2b-256 |
8698e52ee53696f75324dc5be72ab55170d29fabb4125254afcbddf69e6a0dff
|
File details
Details for the file xandai_cli-2.1.7-py3-none-any.whl.
File metadata
- Download URL: xandai_cli-2.1.7-py3-none-any.whl
- Upload date:
- Size: 201.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f99814acdf97e0a977cf84456ee0f545fad764c739ad0237c97c2295fc6ec935
|
|
| MD5 |
746846b6516fca9eafc0104cb5d5b73c
|
|
| BLAKE2b-256 |
3785c4839b0fb0702cfcfb4378bc4b23d8f0ab82a655f53c7e2b6b14e3cdeb6e
|