whatisgithub

What is tiri-agent?

easylink-ai-open/tiri-agent — explained in plain English

Analysis updated 2026-05-18

257TypeScriptAudience · developerComplexity · 4/5LicenseSetup · moderate

In one sentence

A local-first personal AI assistant with CLI chat, a web interface, file and shell tools, and messaging platform integrations.

Mindmap

mindmap
  root((repo))
    What it does
      Local AI assistant
      CLI and web shell
      Built on agent-runtime
    Tech stack
      Python
      Next.js React
      FastAPI SQLite
    Use cases
      Local chat sessions
      Sandboxed file and shell tools
      Messaging integrations
    Audience
      Developers
      Self-hosters
    Setup
      Python venv
      Configure model API key
      Run CLI or server

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run a personal AI assistant locally that keeps all chat history and data on your own machine.

USE CASE 2

Give an AI assistant the ability to read, write, and run commands in a sandboxed local or Docker workspace.

USE CASE 3

Connect an AI assistant to Telegram, WeChat, or Feishu so it can chat with you through those apps.

What is it built with?

PythonTypeScriptNext.jsReactFastAPISQLiteDocker

How does it compare?

easylink-ai-open/tiri-agentrazr001/align-devxiaolongbao0709/ai-virtual-phone
Stars257257258
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderateeasymoderate
Complexity4/52/53/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a Python virtual environment, the separate agent-runtime package, and an AI provider API key.

AGPL-3.0 requires that if you modify this and let others use it over a network, you must share your source code too.

So what is it?

Tiri Agent is a personal AI assistant that runs on your own machine rather than in someone else's cloud. It is built on top of a separate core project called agent-runtime, and this repository turns that core into something you can actually use day to day: a command line chat, a set of backend APIs, and a web interface built with Next.js and React. The project keeps its data local. It stores chat sessions, message history, settings, and other records in a SQLite database on your own computer, defaulting to a folder called .tiri in your home directory. You configure which AI model it talks to by setting a handful of environment variables, such as which provider API to use, the model name, and an API key, then start it either as a command line chat tool or as a running server with both a backend and a web page. Beyond chat, Tiri can act on your behalf using sandbox tools that read files, write files, list files, and run shell commands. These can run directly on your machine or inside a Docker container for extra isolation, with one container reused per chat session so state persists across a conversation. It also supports connecting to messaging platforms. The project includes adapters for Telegram, Weixin or WeChat, and Feishu or Lark, so the assistant can send and receive messages through those channels, not just through the local CLI or web shell. Setting it up involves creating a Python virtual environment, installing both this repository and its companion agent-runtime package, and configuring your chosen AI provider's credentials before running the CLI or server commands. The project is aimed at developers comfortable working with Python and command-line tools rather than a plug-and-play consumer app. Tiri Agent is released under the GNU Affero General Public License version 3.

Copy-paste prompts

Prompt 1
Walk me through setting up the Python virtual environment and installing agent-runtime alongside this repo.
Prompt 2
Help me configure the TIRI_LLM_API and TIRI_MODEL environment variables for my chosen AI provider.
Prompt 3
Explain how the Docker sandbox backend keeps one container per session.
Prompt 4
Show me how to connect a Telegram bot to this agent using the channel adapters.

Frequently asked questions

What is tiri-agent?

A local-first personal AI assistant with CLI chat, a web interface, file and shell tools, and messaging platform integrations.

What language is tiri-agent written in?

Mainly TypeScript. The stack also includes Python, TypeScript, Next.js.

What license does tiri-agent use?

AGPL-3.0 requires that if you modify this and let others use it over a network, you must share your source code too.

How hard is tiri-agent to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is tiri-agent for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.