# Instrukt

> Instrukt is an open-source agent for ai models and llm tooling. Terminal-based environment for building and running AI agents with document indexes. It is available on CLI, Linux, macOS and Self-hosted.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Self-hosted
- **Website:** https://blob42.github.io/Instrukt/
- **Repository:** https://github.com/blob42/instrukt
- **GitHub stars:** 329
- **License:** AGPL-3.0
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Instrukt runs in the terminal as a workspace where you chat with AI agents, give them instructions in plain language, and attach tools and searchable document collections to them. Agents are packaged as small Python modules, so they can be written locally, shared with others, and loaded into the interface without changes to the core app.

For question-answering over your own material, you build indexes from directories or code bases. The app detects programming languages in a source tree and picks a splitting strategy suited to each, then stores embeddings in Chroma. An attached index becomes a retrieval tool that an agent can query, and you can jump to the source documents used for an answer.

Agents can optionally run inside Docker containers, with gVisor available for stronger isolation. The project is built on LangChain and Textual and suits developers and keyboard-focused users who want to work with agents from a shell or over SSH. The project is still early and warns that bugs and API changes should be expected. Only OpenAI models are supported at this point.

## Features

- **Terminal chat interface:** A keyboard-driven text UI with markdown and syntax-highlighted agent output, usable over SSH.
- **Custom agents as Python packages:** Agents are simple modules that can be written, shared and loaded by other users.
- **Code and document indexes:** Build Chroma-backed indexes from directories, with language-aware chunking for source code.
- **Attachable tools:** Add or remove tools and indexes on an agent while a session is running.
- **Containerised agent execution:** Run agents inside Docker containers, optionally with the gVisor runtime.
- **Built-in developer console:** An IPython console for inspecting and debugging agents, plus a REPL with command history.

## Good for

- Asking questions about a local code base through a retrieval-enabled coding agent
- Querying a folder of documents and reviewing the source passages behind each answer
- Building small reusable agents and sharing them as Python packages
- Running AI assistance on a remote server through a terminal session

## FAQ

### Which LLM providers are supported?

Currently only OpenAI models are supported, with local models planned as the next milestone.

### How is Instrukt installed?

It can be installed with pip as instrukt[all], or built from source with Poetry. An OpenAI API key must be exported before running it.

### What operating systems does Instrukt support?

Linux and macOS are supported, and Windows is tested under WSL2.

### What is the license?

It is licensed under AGPL-3.0, which requires publishing source code for publicly available modified instances.

### Is Instrukt free?

Yes. Instrukt is open source, so you can use and self-host it for free.

### What are the best alternatives to Instrukt?

The closest alternatives to Instrukt are pydantic-deepagents, AgentPilot, DemoGPT, atomic-agents and agent-teams-ai.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [pydantic-deepagents](https://ai-powered.com/agents/pydantic-deepagents): pydantic-deepagents is an open-source agent framework for ai models and llm tooling.
- [AgentPilot](https://ai-powered.com/agents/agentpilot): AgentPilot is a freemium open-source agent for ai models and llm tooling.
- [DemoGPT](https://ai-powered.com/agents/demogpt): DemoGPT is an open-source agent framework for ai models and llm tooling.
- [atomic-agents](https://ai-powered.com/agents/atomic-agents): atomic-agents is an open-source agent framework for ai models and llm tooling.
- [agent-teams-ai](https://ai-powered.com/agents/agent-teams-ai): agent-teams-ai is an open-source agent for communication.
- [wmux](https://ai-powered.com/agents/wmux): wmux is an open-source agent for ai models and llm tooling.
- [nodecode](https://ai-powered.com/agents/nodecode-2): nodecode is an open-source agent for ai models and llm tooling.
- [typedai](https://ai-powered.com/agents/typedai): typedai is an open-source agent framework for multi-agent frameworks.

---
Source: https://ai-powered.com/agents/instrukt
