Kward

⌘ Ruby CLI Coding Agent

Your terminal.
Your agent.

Kward is an extendable Ruby CLI coding agent that helps you understand your project, edit files, run commands, search the web, and automate workflows—right from your terminal.

Supports OpenAI, Anthropic, OpenRouter & more.

Chat in your terminal

Multi-turn coding conversations.

Read, write, edit files

With read-before-write guardrails.

›_

Run shell commands

Execute local commands safely.

Search the web

Get live answers and inspect repos.

Extend with plugins

Trusted Ruby plugins for workflows.

Sessions & memory

Save, resume, clone, compact, export.

⇩ Install

Install Kward from RubyGems and get started in seconds.

gem install kward

Then initialize the starter pack, if you want the defaults.

kward init
View full installation docs →
Quick StartRun from Source
# Start an interactive chat
kward

# Show available commands and examples
kward help

# Sign in or save provider credentials
kward login

# Run one prompt and exit
kward "Explain this project"

# Use a specific working directory
kward --working-directory ~/code/project "Explain this project"

⌘ What Kward can do

Built for developers. Powered by you.

Open source, extensible, and ready for your workflows.

View on GitHub