Skip to content

Repository files navigation

🤖 TerminusAI

Your intelligent CLI companion that transforms natural language into executable commands

TerminusAI is a powerful CLI tool that uses AI to understand your tasks and generate the right commands to accomplish them. With built-in safety features and multi-provider support, it's like having an expert assistant for your terminal.

🎬 See It In Action

TerminusAI Demo

Watch TerminusAI understand "build this project into an executable" and generate the exact Go build commands needed

✨ Key Features

🧠 Smart Command Understanding - AI interprets natural language and executes the right commands
🔌 Multi-Provider Support - Works with OpenAI, Anthropic Claude, and GitHub Copilot
🔍 Interactive Agent Mode - Inspects files and executes tasks iteratively
🛡️ Security First - Every command requires your approval with persistent policies
🌍 Cross-Platform - Runs seamlessly on Windows, macOS, and Linux
Simple Interface - No subcommands needed, just ask what you want

🚀 Quick Setup

Install from Source

git clone <repository-url>cd terminusai
make install

Prerequisites

  • Go 1.21+
  • API Key from one of:
    • OpenAI (GPT-4o, o4-mini)
    • Anthropic (Claude 3.5 Sonnet/Haiku)
    • GitHub (Copilot access)

🏃 Get Started in 30 Seconds

# 1. Configure your AI provider
./terminusai setup
# 2. Ask anything in natural language
./terminusai "1+1=?"
./terminusai "create a docker image from this directory"
./terminusai "build this project into an executable"

📖 Usage

Simple and Direct

Just ask TerminusAI what you want to do:

# Math and general questions
terminusai "what is 2+2?"
terminusai "explain what Docker is"# File operations
terminusai "list all Python files in this directory"
terminusai "create a README file for this project"# Development tasks
terminusai "install dependencies and run tests"
terminusai "build this Go project"
terminusai "format all code files"# System administration
terminusai "check disk usage"
terminusai "find large files in this directory"

Utility Commands

CommandDescriptionExample
terminusai setupConfigure AI providers & credentialsterminusai setup
terminusai modelChange AI model settingsterminusai model --provider openai
terminusai configView current configurationterminusai config

Common Flags

  • --provider - Choose AI provider (openai/anthropic/copilot)
  • --verbose - Detailed logging
  • --debug - Maximum debug output

⚙️ Configuration

Settings stored in ~/.terminusai/:

  • config.json - Provider settings and API credentials
  • policy.json - Command approval rules

Supported AI Providers

ProviderModelsRequired Key
OpenAIGPT-4o, GPT-4o-mini, o4-miniOPENAI_API_KEY
AnthropicClaude 3.5 Sonnet/HaikuANTHROPIC_API_KEY
GitHubCopilot modelsGITHUB_TOKEN

🔐 Security

TerminusAI puts safety first:

  • Every command needs your approval
  • 📋 Persistent approval policies
  • 🚫 No auto-execution
  • 🔒 Local credential storage

🔧 Environment Variables

VariableDescription
TERMINUS_AI_VERBOSE=1Enable verbose logging
TERMINUS_AI_DEBUG=1Enable debug logging
TERMINUS_AI_TEMPERATURESet LLM temperature (0.0-1.0)
TERMINUS_AI_DEFAULT_MODELOverride default model
TERMINUS_AI_DEFAULT_PROVIDEROverride default provider

🛠️ Development

make deps # Install dependencies
make test# Run tests 
make build-all # Build for all platforms
make clean # Clean artifacts

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Ready to supercharge your terminal experience? Get started with TerminusAI today! 🚀

About

A terminal agent / AI

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages