Skip to content
navadeep0508Public

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

92 stars

Watchers

1 watching

Forks

Repository files navigation

KRYTH — Autonomous Intelligence

Your Terminal. Your AI.
Your Autonomous Coding Agent.

KRYTH is an open-source AI coding assistant that explores codebases, plans work, edits files, and runs commands from your terminal—with approval controls and resumable sessions.

GitHub stars PyPI version Python versions Latest GitHub release

Demo · Install · Quick start · Features · Docs · Contribute

KRYTH is a Python terminal AI agent for developers who want an assistant to do more than answer questions. Give it a task in plain language: it can inspect your project, make a plan, call file and terminal tools, and report what it did. Its interactive terminal UI streams activity as it works; approval policies let you control when tools can make changes. OpenRouter is the default model gateway, with additional provider configurations available. Sessions and checkpoints let you continue work later. KRYTH is an open-source coding agent built to work inside the repository you choose. On launch, rotating tips surface key shortcuts and commands so you can get productive quickly.

Demo

Watch KRYTH run in the terminal:

KRYTH terminal setup and interactive session

What is KRYTH?

KRYTH connects a language model to a codebase-aware tool loop. Instead of stopping at generated text, it can read and search project files, create or edit code, execute shell commands, use a plan, and call specialized sub-agents. You interact through a full-screen terminal UI or send a prompt directly from the CLI. Tool permissions are governed by configurable approval policies.

Install

Windows

The latest GitHub release includes the official KRYTH-Setup-<version>.exe installer. It installs the wheel for the current user, adds the Python Scripts directory to your user PATH, and checks the launcher. It supports installed Python 3.11–3.14 with pip and does not require administrator rights. Open a new terminal after installation.

Or install through pip:

python -m pip install --user kryth
python -m kryth setup --path

If kryth is still not found, run python -m kryth setup --path using the same Python interpreter you installed with, then open a new terminal. For details, see Windows installation.

Linux and macOS

KRYTH supports Python 3.11 through 3.14, as declared in the package metadata.

python3 -m pip install kryth

Ensure the Python environment's scripts directory is on your PATH. The setup --path helper is Windows-only.

Quick start

Run KRYTH from the repository you want it to work in:

cd path/to/your/project
kryth

On first launch, the setup flow helps configure a provider. OpenRouter is the default; KRYTH also has provider configuration for OpenAI, Anthropic, Google, Groq, NVIDIA, DeepSeek, Mistral, Together, Fireworks, Cerebras, Ollama, LM Studio, and custom OpenAI-compatible endpoints. Provider and model availability depend on your credentials and endpoint.

You can also submit a task directly or continue the latest saved session for the current directory:

kryth "Explain this codebase"
kryth --continue

To set up KRYTH's built-in browser operator, run kryth browser doctor and kryth browser setup. See the KUBA browser setup guide for Chrome permissions and troubleshooting.

For browser-based OpenRouter login or manual key entry, use kryth login or kryth login --paste. API_KEY and BASE_URL environment variables override saved credentials and base URL. See configuration and the CLI reference.

Features

Capability What it does
Autonomous coding workflow Runs a model/tool loop that can inspect, plan, act, and return a result.
Codebase exploration Read files, search text, match paths, and list directories.
File changes Write and edit files; apply multi-file patches with all-or-nothing staging.
Terminal execution Run shell commands in the configured working directory, with environment filtering and approval checks.
Planning Track task steps with the plan tool.
Specialized sub-agents Delegate investigation, review, architecture, test-writing, and debugging tasks to agents with narrowed tool sets.
MCP integrations Connect external Model Context Protocol servers over stdio or HTTP/SSE.
Provider choice Use OpenRouter or configure supported provider profiles and compatible endpoints.
Sessions and checkpoints Save conversations after turns, resume them, and rewind the conversation to a checkpoint. Rewind does not undo file changes.
Approval policies Choose confirmation, edit automation, read-only, and other policies; dangerous shell patterns are checked by the safety layer.
Interactive terminal UI See streaming responses, tool progress, diffs, plans, and slash commands in the Rich-based interface.
Context management Prune stale tool output and compact long histories into a continuation brief.
Startup tips Rotating tips on launch surface key shortcuts and commands to get productive quickly.

See the tools and controls

Area Included
Files read, write, edit, apply_patch, grep, glob, list_directories
Terminal bash tool with shell detection, filtered environment, and approval checks
Planning plan tool for tracking steps during a run
Network and memory DuckDuckGo-backed search, URL fetch, and persistent key-value memory
Delegation codebase_investigator, code_reviewer, software_architect, test_writer, debugger
External tools MCP servers configured in TOML; inspect status with /mcp
Session controls kryth --continue, kryth --resume <id>, /checkpoint, /checkpoints, /rewind
Approvals on_request (default), auto_edit, auto, on_fail, never, yolo
Model settings Configure provider, endpoint, model, reasoning, and credentials; switch model with /model

See Tools, Approvals, and Sessions for details.

Architecture

flowchart TD
    U[Developer input] --> UI[CLI and terminal UI]
    UI --> A[Agent loop]
    A <--> C[Provider client]
    C <--> M[Configured model provider]
    A --> CTX[Context manager and compactor]
    A --> T[Tool registry]
    T --> F[File and terminal tools]
    T --> P[Planning, network, and memory tools]
    T --> S[Specialized sub-agents]
    T --> MCP[MCP manager and server tools]
    A --> AP[Approval manager]
    AP --> T
    A --> SS[Session and checkpoint store]
    UI --> SS
Loading

The diagram follows the implementation's agent, client, tool registry, approval, context, MCP, and session layers. See Architecture.

Technology stack

The package declares Python >=3.11,<3.15 and these core dependency ranges in pyproject.toml:

Component Role
Click CLI commands and options
Rich and prompt-toolkit Terminal rendering, streaming UI, input, and completion
OpenAI SDK and httpx Model API client and asynchronous HTTP
Pydantic Configuration validation and tool schemas
FastMCP MCP client integration
tiktoken Token counting for context management
ddgs DuckDuckGo-backed web search
platformdirs Cross-platform user configuration paths

See Technologies and pyproject.toml for the full dependency list and version ranges.

Configuration

KRYTH reads user settings from ~/.config/kryth/config.toml (resolved through platformdirs) and optional project overrides from .kryth/config.toml. AGENTS.md instructions are discovered from the working directory up to the repository root. Configure provider/model settings, approval policy, sessions, MCP servers, hooks, and the command environment in TOML.

Credentials can be entered through kryth login or the setup flow. API_KEY and BASE_URL take precedence over stored values; avoid committing secrets in project config. The complete schema and examples are in Configuration.

Documentation

Guide Description
Windows installation Installer, pip, PATH setup, and recovery
KUBA browser setup Browser prerequisites, first-run permissions, configuration, and troubleshooting
CLI reference Commands, flags, login, and keyboard shortcuts
Configuration TOML settings, providers, environment variables, hooks, MCP, and AGENTS.md
Tools Built-in tools, sub-agents, MCP, and context handling
Approvals Approval policies and safety checks
Sessions Session storage, resume, checkpoints, and rewind
Slash commands Commands available inside the TUI
Architecture Project structure and implementation design
Technologies Libraries and their roles
Brand guide Existing KRYTH brand assets and guidance
Publishing Project release and publishing notes

Roadmap

The project currently lists these items as in progress in the existing README:

  • Parallel sub-agents — allow sub-agents to delegate work to other specialized sub-agents.
  • Git integration — add dedicated Git functionality to KRYTH.

These are planned work, not capabilities advertised above. See open issues for current discussion and status.

Contributing

Contributions are welcome. To get a development checkout:

git clone https://github.com/navadeep0508/Kryth.git
cd Kryth
uv sync

Alternatively, install the project in editable mode with python -m pip install -e .. Run the existing test suite with uv run pytest. Fork the repository, make a focused branch, and open a pull request against main with a clear description. See CONTRIBUTING.md for workflow and UI contribution guidance.

Community and support


If KRYTH is useful to you, consider giving the repository a star. It helps more developers discover the project.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

92 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages