Skip to main content

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.

Metadata

Release files for intent-agent 0.1.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for intent-agent 0.1.8.1
File Size Uploaded Provenance
intent_agent-0.1.8.1.tar.gz 43.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for intent-agent 0.1.8.1
File Interpreter ABI Platform
intent_agent-0.1.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 90.7 kB

Release files / intent_agent-0.1.8.1.tar.gz

Download URL intent_agent-0.1.8.1.tar.gz
Size 43.8 kB
Tags Source
SHA-256 checksum
How to use checksums
63ce598ea821942870f381e0f7ac648365ed935c02ac10d5aede3f45496cd65b
BLAKE2b-256 checksum
How to use checksums
01f5eb2bc282b99efdb496accea1d03e3558c11f13764332204c929d789a1c3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / intent_agent-0.1.8.1-py3-none-any.whl

Download URL intent_agent-0.1.8.1-py3-none-any.whl
Size 46.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20561c4b4462c451497afb3d77175925964a2d79aaffe5e5170d19bdb6184031
BLAKE2b-256 checksum
How to use checksums
6eb9aeaf2003e2ca98eb6c993c91d534b41872d45ace333b776b83012d5d8c3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for intent-agent 0.1.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page