Skip to content
AgentOpen-source agent

Instrukt

Terminal-based environment for building and running AI agents with document indexes

Instrukt is an open-source agent for ai models and llm tooling. It is available on CLI, Linux, macOS and Self-hosted.

Pricing
Open source
Platforms
CLI, Linux, macOS
GitHub stars
329
Last commit
Language
Python
License
AGPL-3.0

Similar agents

About Instrukt

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.

What it does

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

Pricing

Open source

Free open-source project under AGPL-3.0

Prices change. Check blob42.github.io before you buy.

Instrukt 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.