Skip to main content

Command-line interface for TODOforAI Edge

Project description

TODOforAI CLI

A command-line interface for creating TODOs from piped input using TODOfor.ai.

Built on top of the todoforai-edge-cli Python package.

Installation

Install globally with pip:

pip install todoai-cli

Or install from source:

git clone <repository>
cd todoai-cli
pip install -e .

Setup

Get your API key from todofor.ai and set it:

export TODOFORAI_API_KEY=your_api_key_here

Usage

Basic Usage

echo "Debug authentication issue" | todoai-cli

With Options

# Specify agent and skip confirmation
echo "Send email to client" | todoai-cli --agent "gmail" -y

# Custom TODO ID
echo "Weekly report" | todoai-cli --todo-id weekly-report-2024-01

# JSON output for scripting
echo "API task" | todoai-cli --json

Configuration

Set defaults to avoid repeated prompting:

# Set default project and agent
todoai-cli --set-default-project abc123
todoai-cli --set-default-agent "todoforai gmail"

# Now you can just pipe content
echo "Quick task" | todoai-cli -y

Examples

# From file
cat task_description.txt | todoai-cli

# From clipboard (macOS)
pbpaste | todoai-cli --agent "gmail"

# From git commit
git log -1 --pretty=%B | todoai-cli --agent "code review"

# Multi-line with confirmation
cat << EOF | todoai-cli
Research the following:
1. AI safety regulations  
2. GDPR compliance
3. Model deployment best practices
EOF

Configuration File Locations

Default locations (if --config-path is not used):

  • Windows: %APPDATA%\todoai-cli\config.json
  • macOS: ~/Library/Application Support/todoai-cli/config.json
  • Linux: ~/.config/todoai-cli/config.json (XDG)

Override with:

todoai-cli --config-path /custom/path/config.json

Command Line Options

  • --project, -p: Project ID (prompts if not set)
  • --agent, -a: Agent name (partial match, prompts if not set)
  • --todo-id: Custom TODO ID (auto-generated UUID if not provided)
  • --api-url: API URL (overrides environment and config defaults)
  • --json: Output result as JSON
  • --yes, -y: Skip confirmation prompt
  • --set-default-project: Set default project ID
  • --set-default-agent: Set default agent name
  • --set-default-api-url: Set default API URL
  • --show-config: Show current configuration
  • --reset-config: Reset all configuration
  • --config-path PATH: Use specific config file path (overrides default)

Features

  • Global installation: Available as todoai-cli command
  • Cross-platform config: Proper config locations for Windows/macOS/Linux
  • Clean imports: Simple, reliable package imports
  • Flexible API URL: Environment variables, CLI args, or saved config
  • Confirmation dialog: Shows summary before creating TODO
  • Stateful config: Remembers preferences
  • Auto-generated IDs: UUIDs created automatically
  • Partial agent matching: "gmail" matches "todoforai gmail"
  • Skip confirmation: Use -y for automation
  • JSON output: For scripting integration
  • Error handling: Clear messages for common issues

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

todoai_cli-0.1.9.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

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

todoai_cli-0.1.9-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file todoai_cli-0.1.9.tar.gz.

File metadata

  • Download URL: todoai_cli-0.1.9.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for todoai_cli-0.1.9.tar.gz
Algorithm Hash digest
SHA256 7aa49cbc85e1aa1be660a3b5f8988a203b16cc5b4278696fffb83263f29e899d
MD5 0f0c732762cb0ff50f8bb5a39190ffdd
BLAKE2b-256 6e92b866ff8194a47325f2d3a2ad966cdec112f707b0b7e29807d35a1671b546

See more details on using hashes here.

File details

Details for the file todoai_cli-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: todoai_cli-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for todoai_cli-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 65cd886e8796c8dd839e015e5629b32efadac60fc1628f43cf6b17d6cf9d9fef
MD5 a6e2303c277c096ff7a6797801562226
BLAKE2b-256 7b318e35aa86a100c7116ed37949c2b6d969c44cf4de51a98238764314a66db6

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