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.
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:
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
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
- Report bugs or request features through GitHub Issues.
- For proposed changes, open a pull request.
- Contributions follow the Code of Conduct.
If KRYTH is useful to you, consider giving the repository a star. It helps more developers discover the project.
Metadata
Release files for kryth 0.0.44
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kryth-0.0.44.tar.gz | 373.2 kB | With provenance | Details for kryth-0.0.44.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kryth-0.0.44-py3-none-any.whl | Python 3 | none | any | Details for kryth-0.0.44-py3-none-any.whl |
Total release size: 753.4 kB
Release files / kryth-0.0.44.tar.gz
| Download URL | kryth-0.0.44.tar.gz |
|---|---|
| Size | 373.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03ec23a01213f2f9e8a4e9d4073c3c9be82858f2b48df8e44da24a2bb92e6443
|
|
BLAKE2b-256 checksum How to use checksums |
638d12909ff3d6fb798617f57a77671d938472e1989ef876337b3e1bbafba847
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / kryth-0.0.44-py3-none-any.whl
| Download URL | kryth-0.0.44-py3-none-any.whl |
|---|---|
| Size | 380.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
edc770dc5501a6f4c850d1c3fbccaf8fc30d09a22f2d5facc82836a8a8164440
|
|
BLAKE2b-256 checksum How to use checksums |
14b2efeefc5d8c0cbc021be6ae3c466717d9d28b93922694f293b395846f2db7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for kryth 0.0.44
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kryth-0.0.44.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.