silver-ai 0.0.1

A simple selector tool for your ai clis
silver-ai-0.0.1 is not a library.

AI CLI Launcher

A terminal UI built with Ratatui to select and launch AI CLI tools (Copilot/Cursor/Codex) with session resume capability.

Features

  • Orange Rectangle UI: Clean, centered selection menu in an orange bordered rectangle
  • Session Persistence: Remembers your last selected tool between launches
  • Keyboard Navigation: Intuitive vim-style (j/k) and arrow key navigation
  • Quick Launch: Select your preferred AI tool and launch directly
  • Terminal-friendly: Designed to run inside nvim -c "terminal" for easy copy/paste and scrolling

Building

cargo build --release

The binary will be at target/release/ai-cli

Usage

Run the CLI:

./target/debug/ai-cli

Or from inside Neovim terminal:

:terminal nvim -c "terminal"

Keyboard Controls

  • ↑ / k: Move selection up
  • ↓ / j: Move selection down
  • Enter: Select and launch the highlighted tool
  • q / ESC: Exit without launching

How It Works

  1. First Launch: Shows the AI tool selection menu
  2. Subsequent Launches: Pre-selects your last used tool
  3. Tool Launch: Pressing Enter launches the selected tool directly
  4. Session Storage: Your selection is saved to ~/.config/ai-cli/session.json

Tools

  • GitHub Copilot: AI assistant by GitHub (launches with --resume)
  • Cursor: AI-first code editor
  • OpenAI Codex: AI code generation engine

Project Structure

src/
├── main.rs       # Main application loop and event handling
├── session.rs    # Session persistence (load/save state)
├── launcher.rs   # Tool definitions and launch logic
└── ui.rs         # Ratatui UI rendering

Configuration

Session data is stored at: ~/.config/ai-cli/session.json

Example session file:

{
  "last_tool": "copilot",
  "timestamp": "2026-03-01T15:30:34Z"
}

Dependencies

  • ratatui: Terminal UI framework
  • crossterm: Terminal handling
  • serde/serde_json: Session serialization
  • anyhow: Error handling
  • chrono: Timestamp management
  • dirs: Config directory detection

Future Enhancements

  • Custom color themes
  • Support for custom AI tool registration
  • Session history (more than just last used)
  • Tool status/availability checks
  • Custom argument passing to tools