AI-powered CLI agent that controls your desktop with natural language commands
Project description
Intent Agent
AI-powered CLI agent that controls your desktop with natural language commands.
Features
- Natural Language Control: Control your desktop with simple English commands
- Interactive REPL: Continuous command mode for multiple operations
- Screenshot Analysis: Capture and analyze screen content for context
- Secure Execution: Sandboxed code execution with dangerous pattern blocking
- Authentication: Secure PKCE-based login with Intent Web Dashboard
- Cross-Platform: Works on macOS, Windows, and Linux
Installation
From PyPI (recommended)
pip install intent-agent
From source
git clone https://github.com/intent-cli/intent-cli.git
cd intent-cli
pip install -e .
Quick Start
- Install and authenticate:
pip install intent-agent
intent login
- Enter interactive mode:
intent
- Try a command:
intent> open calculator
intent> click the start button
intent> take a screenshot
Usage
Interactive Mode
Start the interactive command mode by running intent without arguments:
intent
Available Commands
helporh- Show help messagestatus- Show authentication status and creditslogout- Log out and clear stored credentialsexitorquit- Exit interactive mode- Any natural language command - Execute the command
Direct Command Execution
Execute a command directly without entering interactive mode:
intent "open calculator"
intent "click the settings button"
intent "take a screenshot"
Command Options
-v, --verbose- Enable verbose output-c, --confirm- Require confirmation before execution-d, --dry-run- Generate code without executing it
How It Works
Intent CLI uses a secure code execution engine:
- Your natural language command is sent to the Intent AI API
- The AI generates Python code to perform the action
- The code is validated for safety (blocked imports, syntax checks)
- If safe, the code is executed in a sandboxed environment
- Results are captured and displayed
Security
Intent blocks execution of potentially dangerous code:
os,subprocess,pathlib- File system operationsopen- File reading/writingeval,exec- Dynamic code executionimportstatements for unsafe modules
Safe operations like pyautogui (mouse/keyboard control) and Pillow (image processing) are allowed.
Configuration
Intent CLI uses environment variables for configuration. Copy .env.example to .env:
cp .env.example .env
Environment Variables
| Variable | Description | Default |
|---|---|---|
INTENT_API_URL |
Custom API endpoint | Intent Cloud |
INTENT_LOG_LEVEL |
Logging level | info |
Development
Clone the repository and install dependencies:
git clone https://github.com/intent-cli/intent-cli.git
cd intent-cli
pip install -e ".[dev]"
Run tests:
pytest -v
Build the package:
python -m build
Troubleshooting
macOS permissions
For screenshot capture on macOS, you may need to grant Screen Recording permission in System Preferences > Privacy & Security > Screen Recording.
Keyring errors
If you encounter keyring-related errors on Linux, install the keyring backend:
pip install keyrings.alt
License
MIT License - see LICENSE file for details.
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 intent_agent-0.1.6.tar.gz.
File metadata
- Download URL: intent_agent-0.1.6.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
205cfcf89510bbf8b7c87062733e0bc7fb7e5b439d7484c58c7539a06899f10f
|
|
| MD5 |
7476938cf983d099e26d36dd8642bfc4
|
|
| BLAKE2b-256 |
64ebed0ca1183923612d271bd7f2f693214866a2d67d632efc1b9e5e39357662
|
File details
Details for the file intent_agent-0.1.6-py3-none-any.whl.
File metadata
- Download URL: intent_agent-0.1.6-py3-none-any.whl
- Upload date:
- Size: 37.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
938add06d9771477efef34981119860e1c9087cf7e6d6226f3606e52eaf90966
|
|
| MD5 |
bcc36ecac3b90f83eeafc3e4fa8d59f3
|
|
| BLAKE2b-256 |
ff72a2b0bf1a2f01308ac0ca79aa808fdf70058719aaae685d92f7b4e51eec87
|