Skip to main content

AI-powered CLI agent that controls your desktop with natural language commands

Project description

Intent Agent

PyPI version Python versions License

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

  1. Install and authenticate:
pip install intent-agent
intent login
  1. Enter interactive mode:
intent
  1. 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

  • help or h - Show help message
  • status - Show authentication status and credits
  • logout - Log out and clear stored credentials
  • exit or quit - 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:

  1. Your natural language command is sent to the Intent AI API
  2. The AI generates Python code to perform the action
  3. The code is validated for safety (blocked imports, syntax checks)
  4. If safe, the code is executed in a sandboxed environment
  5. Results are captured and displayed

Security

Intent blocks execution of potentially dangerous code:

  • os, subprocess, pathlib - File system operations
  • open - File reading/writing
  • eval, exec - Dynamic code execution
  • import statements 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


Download files

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

Source Distribution

intent_agent-0.1.4.tar.gz (34.2 kB view details)

Uploaded Source

Built Distribution

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

intent_agent-0.1.4-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

File details

Details for the file intent_agent-0.1.4.tar.gz.

File metadata

  • Download URL: intent_agent-0.1.4.tar.gz
  • Upload date:
  • Size: 34.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for intent_agent-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0e007e5df048362eca531c143488e15a5f77c4a2d0da05bcea0a91e0c36e4b60
MD5 355c835e68a7a69abd6495034858f4c9
BLAKE2b-256 d9bf5e8c50c3be1f69e43d827b7a791d63724827f4988a358428bf2f8083f4da

See more details on using hashes here.

File details

Details for the file intent_agent-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: intent_agent-0.1.4-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

Hashes for intent_agent-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d28cd8ed1ee726781d9b3ce9f9ae67e823b5eb66663a95ef79840ccec27587ff
MD5 017d9702e6da0b7963fc6bafa2341d42
BLAKE2b-256 178ac9df9d6970fd406f33c45b1cccdefa5361fdd3f603686ed9aaa9d3b577f3

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