KnightCode Docs

KnightCode

KnightCode is an extensible AI agent that works from your terminal. Give it a goal and a working folder, and it can inspect files, run commands, edit content, and work through...


KnightCode is an extensible AI agent that works from your terminal. Give it a goal and a working folder, and it can inspect files, run commands, edit content, and work through multi-step tasks.

Use KnightCode for software development, research notes, writing projects, data files, or hobby work. You can use KnightCode as is, prompt it to adapt itself to your workflow, or build other applications powered by KnightCode using the SDK.

Start using KnightCode

New to KnightCode? Follow the Quickstart to install KnightCode, connect a model, and complete your first task.

If KnightCode is already installed, choose what you want to do:

Customize KnightCode

KnightCode can reuse prompts, load specialized instructions, add executable integrations, change its terminal interface, connect model services, and distribute these resources as packages. Use the Quickstart customization chooser to select the smallest mechanism that meets your need.

Automate or embed KnightCode

Find reference and setup information

Use the reference pages to look up CLI options, settings, providers, keybindings, and environment variables.

For platform-specific help, see Terminal Setup, Windows, tmux, Termux on Android, or Containerization.

Work safely

KnightCode's tools and extensions run with the permissions of the KnightCode process. Project trust controls which project resources KnightCode loads, but it does not sandbox tool calls. Review Security before using untrusted files, repositories, extensions, or unattended automation.