Skip to content
Alex Clarke edited this page May 22, 2026 · 14 revisions

Welcome to the Loki Wiki!

A helpful way to use this wiki is to create a RAG from it and then ask questions about Loki, with Loki! Here's an example on how to create a RAG from this wiki and then ask a question about Loki:

Loki RAG


Loki is an all-in-one, batteries-included, LLM CLI tool featuring Shell Assistant, CLI & REPL Mode, RAG, AI Tools & Agents, and More.

It is designed to include a number of useful agents, roles, macros, and more so users can get up and running with Loki in as little time as possible.

Agent example

Coming from AIChat? Follow the migration guide to get started.


Quick Links

  • AIChat Migration Guide: Coming from AIChat? Follow the migration guide to get started.
  • Installation: Install Loki
  • Getting Started: Get started with Loki by doing first-run setup steps, and learn the basics.
  • Sharing Configurations: Install bundles of agents, roles, macros, tools, and MCP servers from any git repo, and share your own.
  • REPL: Interactive Read-Eval-Print Loop for conversational interactions with LLMs and Loki.
  • Vault: Securely store and manage sensitive information such as API keys and credentials.
  • Shell Integrations: Seamlessly integrate Loki with your shell environment for enhanced command-line assistance.
  • Function Calling: Leverage function calling capabilities to extend Loki's functionality with custom tools
  • First-Class MCP Server Support: Easily connect and interact with MCP servers for advanced functionality.
  • Macros: Automate repetitive tasks and workflows with Loki "scripts" (macros).
  • RAG: Retrieval-Augmented Generation for enhanced information retrieval and generation.
  • Sessions: Manage and persist conversational contexts and settings across multiple interactions.
  • Roles: Customize model behavior for specific tasks or domains.
  • Agents: Leverage AI agents to perform complex tasks and workflows, including sub-agent spawning, teammate messaging, and user interaction tools.
    • Graph Agents: Define an agent as a declarative, YAML-driven workflow. A directed graph of typed nodes (LLM calls, scripts, approvals, user input, RAG retrieval, sub-agent spawns).
  • Todo System: Built-in task tracking for improved agent reliability with smaller models.
  • Environment Variables: Override and customize your Loki configuration at runtime with environment variables.
  • Client Configurations: Configuration instructions for various LLM providers.
  • Custom Themes: Change the look and feel of Loki to your preferences with custom themes.
  • History: A history of how Loki came to be.

History

Loki began as a fork of AIChat CLI and has since evolved into an independent project.

See CREDITS for full attribution and background.


Creator

Clone this wiki locally