Skip to content
Projekte

Über uns

The open source AI agent operating system

Systeme und Infrastruktur

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
+10
in 7 days
+25
in 15 days
+37
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original
Teros

Teros

The open AI agent operating system.

Build, run, and extend AI agents that actually get things done.

Open source under the GNU AGPL v3.

GitHub Stars License GitHub Issues Discord

TypeScript Node.js MongoDB React Native Expo

Website · Docker guide · Contributing · Discord

curl -fsSL https://get.teros.ai | bash

Requires Docker. Takes about 5–10 minutes, mostly downloading images.


Teros: a user asks the agent Iria how to prepare for a job interview tomorrow and gets a step-by-step plan

Ask an agent anything in plain language and get an answer in seconds


What is Teros?

Teros is a fair source platform for building and running AI agents with real tool capabilities. Think of it as an operating system for AI — agents live inside it, have access to tools (MCAs), connect to your services, and work for you across tasks.

Unlike chat wrappers, Teros agents are persistent, multi-tool, and autonomous. They can browse the web, write and run code, manage your calendar, send emails, interact with GitHub, deploy to Railway, and much more — all through a clean, extensible architecture.

You talk to an agent → The agent uses tools → Things actually happen

Key Concepts

🤖 Agents

AI personas with a personality, memory, and access to tools. Each agent has its own system prompt, preferred LLM provider, and set of installed apps. You can have multiple agents for different purposes — a coding assistant, a project manager, a research agent.

🔧 MCAs (Model Context Apps)

The tool system, called Agent Apps in the app (MCAs, Model Context Apps, in the code). An MCA is a self-contained package that gives agents new capabilities — file system access, email, calendar, databases, APIs. Teros ships with over 70 apps out of the box and makes it easy to build your own.

🏗️ Workspaces

Shared environments where agents and apps are organized together. A workspace can have multiple agents collaborating on the same project, with shared context and a shared Tasks list that agents can pick up and work through.

🧠 Providers

LLM backends. Teros supports Anthropic, OpenAI, Google Gemini, OpenRouter, Ollama (local and cloud), Zhipu, MiniMax, Cloudflare Workers AI, Fireworks, Together, Helmcode and any OpenAI-compatible endpoint. Each agent can use a different model.


Architecture

┌──────────────────────────────────────────────────────────────────┐
│                           Teros                                  │
│                                                                  │
│   ┌──────────────┐   WebSocket   ┌──────────────────┐            │
│   │   Frontend   │ ◄──────────── │    Backend       │            │
│   │  React Native│ ──────────── ►│    Node.js       │            │
│   │  (Expo Web)  │               │    WsRouter      │            │
│   └──────────────┘               └───────┬──────────┘            │
│                                          │                       │
│                             ┌────────────┼─────────────┐         │
│                             │            │             │         │
│                        ┌────▼────┐  ┌────▼────┐  ┌─────▼─────┐   │
│                        │ MongoDB │  │  MCAs   │  │   LLM     │   │
│                        │         │  │ (tools) │  │ Providers │   │
│                        └─────────┘  └─────────┘  └───────────┘   │
│                                                                  │
└──────────────────────────────────────────────────────────────────┘

Monorepo Structure

teros/
├── packages/
│   ├── app/          # React Native / Expo frontend
│   ├── backend/      # Node.js WebSocket server
│   ├── core/         # LLM adapters, conversation engine
│   ├── shared/       # Protocol types, Zod schemas
│   ├── workflows/    # Workflow engine
│   ├── mca-sdk/      # SDK for building MCAs
│   └── e2e/, testing/, mca-testing/   # Test suites and helpers
│
├── mcas/             # 70+ ready-to-use tool packages
│   ├── mca.teros.bash
│   ├── mca.teros.filesystem
│   ├── mca.teros.memory
│   ├── mca.google.gmail
│   ├── mca.google.calendar
│   ├── mca.github
│   ├── mca.notion
│   ├── mca.linear
│   └── ... (over 70 apps)
│
├── docs/             # Logo and demo recordings
└── scripts/          # Build and sync utilities

Included MCAs

Teros ships with over 70 apps across several categories (the folder name is mcas/mca.<name>):

Productivity google.gmail · google.calendar · google.drive · google.docs · google.sheets · google.slides · google.contacts · microsoft.outlook · microsoft.word · microsoft.excel · notion · todoist · trello · monday · clickup · linear · atlassian.jira · atlassian.confluence · slack · discord · telegram

Development github · atlassian.bitbucket · railway · render · netlify · sentry · context7 · teros.bash · teros.filesystem · teros.terminal · teros.remote

AI, media and research replicate · higgsfield · elevenlabs · perplexity · browserbase · teros.browser · teros.webfetch · teros.file-processor

Platform teros.core · teros.memory · teros.conversations · teros.messaging · teros.todo-list (Tasks) · teros.automate · teros.workflows · teros.datetime · teros.guide

Business and integrations hubspot · intercom · zendesk · activecampaign · brevo · intuit.quickbooks · odoo · canva · figma · penpot · homey · kelify and more


LLM Providers

Provider Models
Anthropic Claude (Haiku, Sonnet, Opus)
OpenAI GPT-4o to GPT-5.5, o3, o4-mini
Google Gemini 2.5 and 3.x
OpenRouter 400+ models
Ollama Local models, plus Ollama Cloud
Zhipu AI GLM-4 to GLM-5 (also the Coding plan)
MiniMax M2–M3
Cloudflare Workers AI, Fireworks AI, Together AI, Helmcode Hosted open models
Custom Any OpenAI-compatible endpoint (vLLM, LM Studio…)

Quick Start

Prerequisites

  • Docker and Docker Compose

Run

git clone https://github.com/teros-hq/teros.git
cd teros
cp .env.example .env

# Seed the encryption master key — REQUIRED. The backend refuses to boot without it.
# This writes a random 64-hex masterKey to .secrets/system/encryption.json.
# (See .secrets/README.md for the other, optional system secrets.)
printf '{ "masterKey": "%s" }\n' "$(openssl rand -hex 32)" > .secrets/system/encryption.json

# Get the MCA runtime images the apps run in. `docker compose` does not fetch
# them: the container-agent starts app containers straight from the Docker
# daemon. This pulls the release builds and tags them locally (it falls back to
# ./scripts/build-mca-runtimes.sh, which you also use after changing
# mcas/*/package.json or docker/mca-runtime*/Dockerfile).
./docker/pull-runtimes.sh

# Pull the release images (multi-arch, published for every tag) and start.
# To run your own changes instead: `docker compose up -d --build`.
docker compose pull
./docker/start.sh

Open http://localhost:10002.

The two host ports are settings in .env: TEROS_APP_PORT (the web app, default 10002) and TEROS_BACKEND_PORT (API, uploads and websocket, default 10001). Every address the install uses is built from them. If one of them is taken by something else, ./docker/start.sh says which port and what holds it, names the next free ports above the usual ones and asks Use 10003 (backend) and 10004 (web app) instead? [y/N]: y (or s, sí) uses them; n or Enter alone stops so you can free the ports. Without a terminal, TEROS_PORT_CONFLICT=next or stop answers; unset, it stops and says so. With next it writes the ports to .env (with the localhost addresses that carried the old port) and prints the new address and why it changed.

Teros's ports live in one block: backend 10001, web app 10002, MongoDB 10010, container-agent 10011, Qdrant 10012, local Whisper 10013 (docker/ports.sh). Only the backend and the web app are on the host by default. MongoDB and Qdrant stay inside Docker; TEROS_PUBLISH_DB_PORTS=1 in .env puts them on 127.0.0.1 at TEROS_MONGODB_PORT and TEROS_QDRANT_PORT (10010 and 10012). The container-agent and the local Whisper are reached inside the Compose network only. The next free ports never land on a number of this block.

Pin a version with TEROS_IMAGE_TAG=1.5.0 in .env (or ./docker/update.sh 1.5.0); docker/update.sh pulls the images and restarts.

Configure

Sign in as the admin and open Setup in the sidebar: each row says what it unlocks, what is missing and how to get it. What you save there is encrypted in the database and works at once, with no restart. A file under .secrets/ wins over a value saved in Setup; Teros reads those files when it starts.

  • Email (Setup > Email): sign-up codes, password reset and invitations. Teros sends through Resend: an API key and a sender address on a domain you verified there. Without it, an admin creates accounts in Users. File: .secrets/system/email.json (resendApiKey, fromEmail, fromName). SMTP is not supported.
  • Sign-in with Google, GitHub or Microsoft (Agent Apps > Login): an OAuth client from the provider; the row shows the redirect address to register (<backend>/auth/<provider>/callback) and the console link. File: .secrets/system/oauth.json (google|github|microsoft: { clientId, clientSecret, redirectUri, tenantId }).
  • Apps (Agent Apps, in the app's row): apps that log in with OAuth share one client per provider (Google, Microsoft, Slack, Notion, Atlassian, ...), registered with the redirect <backend>/auth/mca/callback; apps with a key take it in their row. An app stays off until it has what it needs. Each person then connects their own account from Apps. File: .secrets/mcas/<app id>/credentials.json.

Development setup

Three processes: the backend has no direct Docker access — all container operations for MCAs go through a separate container-agent daemon (see .env.example — CONTAINER_AGENT_TOKEN is required by both sides). You need Node 26, pnpm 12 (npm install -g [email protected]), Docker, and a C/C++ toolchain (build-essential, or the Xcode command line tools): the terminal app compiles node-pty on install. Bun runs the tests and the repository checks.

# Install dependencies (Node 26, see .nvmrc)
pnpm install

# Build all packages
pnpm build

# Seed secrets (same as Quick Start — required to boot). For local dev, also set
# MCA_BASE_PATH in .env to an absolute host path to this repo's mcas/ directory,
# and VOLUMES_BASE_PATH to a folder you can write to (it defaults to /data/volumes).

# Start MongoDB + Qdrant. The backend looks for MongoDB on localhost:27017, which
# is where this publishes it on a checkout that has not run ./docker/start.sh. If
# you ran the Quick Start in this folder first, remove TEROS_MONGODB_PORT and
# TEROS_QDRANT_PORT from .env and delete docker-compose.override.yml, or the
# databases are not on those ports.
docker compose up -d mongodb qdrant

# Seed the DB with the MCA catalog and models (fresh DB only; onboarding and agent
# replies fail silently without it)
pnpm --filter @teros/backend sync

# Terminal 1 — container agent (spawns/stops MCA containers)
pnpm dev:container-agent

# Terminal 2 — backend (with hot reload)
pnpm dev:backend

# Terminal 3 — frontend
pnpm dev:app

Telemetry

A Teros you install yourself sends one report every 24 hours to telemetry.teros.ai. It tells us how many installs are running, on which version, and which parts of the product are used. The first report leaves 15 to 30 minutes after the backend starts. Teros cloud does not use this.

An admin can read the exact report and turn it off in Setup → Telemetry.

What is sent (schemaVersion 1):

Field What it holds
installId A random UUID created on the first start. Not derived from your machine, a user or a key. It carries no name and no account.
sentAt, window When the report was built and the 24 hours it covers.
install version, edition, imageTag, installedOn (day), uptimeHours, os, arch, hardware (cpus and memoryGb as ranges), mongoVersion, qdrantVersion.
config providers (provider type → how many), models (catalogue model ids in use, and a count of the rest), and whether email, each signIn provider, autologin and voice are set up.
size users, workspaces, agents, appsInstalled, automations, tasks, conversations, each as a range such as 6-20.
activity Counts for the 24 hours: activeUsers, activeAgents, conversations, userMessages, agentTurns, automateRuns, tasksCompleted, voiceSessions, and apps (tool calls and errors per catalogue app).
health turnErrors (error type → count) and backendStarts.

Names are sent only for things that ship with Teros (provider types, catalogue models, catalogue apps). Anything you added yourself — a custom app, a model of your own endpoint, a local model — is counted under custom and its name is not sent.

What is never sent: the text of messages, prompts, tasks, files, tool arguments or results; names of users, agents, workspaces, projects, conversations or custom apps; email addresses or their domains; hostnames, URLs, IP addresses or file paths; keys, tokens or secrets; error messages or stack traces. None of that is in the report. Like any web request, the report reaches us from an IP address, and the receiver records that address next to the report.

Turn it off in any of these ways:

  • Setup → Telemetry, with the switch.
  • TEROS_TELEMETRY=false in the install's .env (the installer writes TEROS_TELEMETRY=0 there when you answer no).
  • DO_NOT_TRACK=1. It is also off when CI=true.

A report that cannot be sent is dropped: nothing is retried and nothing else in Teros depends on it.

Updates

A Teros you install yourself checks for new versions and can install them from inside Teros. Teros cloud does not use this.

How it checks. The backend reads https://get.teros.ai/manifest.json a few minutes after it starts and then every 72 hours (the manifest can set another interval). Its stable channel names the version we offer once a release has been tested; other channels, such as beta, are never installed. The request is a plain GET with no body and no cookie; its User-Agent is Teros/<your version> and it carries nothing else: no install id, no user, no hostname, no setting. Like any web request, get.teros.ai sees the IP address it comes from. A check that fails changes nothing and is tried again at the next interval.

Who sees it. Only system admins (the person who installed, and anyone with the admin or super role) see the notice and Setup → Updates, and only they can update: an update restarts Teros for everyone on the install. Other users see nothing about updates.

How it updates. "Update now" — or the automatic or scheduled update — starts a short-lived teros-updater container through the Docker socket. It runs the same installer as curl -fsSL https://get.teros.ai | bash, with no questions, as the person who owns ~/.teros. Every image is downloaded before anything stops: if a download fails, Teros keeps running the version it had. Teros is down for a few seconds while the containers restart, and running agent turns stop. Each step and the result are written to ~/.teros/data/update/status.json, and the output to ~/.teros/data/update/update.log; admins see how it ended when Teros is back. With Developer Mode and local work in the source copy, the update stops before changing anything and says what is in the way.

Automatic updates are on by default: a new version installs at night, between 03:00 and 05:00 (time zone of the backend), only while no agent is working; if agents work all through those hours, it tries again the next night. The time cannot be changed. With automatic updates off, the notice and Setup → Updates offer "Schedule for later", which installs that version the same way at night; until then the button reads "Cancel schedule". A version whose automatic or scheduled update failed is not tried again on its own.

Turn it off:

  • Automatic updates: the switch in Setup → Updates, or TEROS_AUTOUPDATE=false in the install's .env (TEROS_AUTOUPDATE=true keeps them on). You are still told when a new version is out.
  • The check itself: TEROS_UPDATE_CHECK=false in the install's .env. Teros then never contacts get.teros.ai for updates and shows nothing; update by running the installer again.

The desktop app checks its own feed at start and every 72 hours. With its "Automatic updates" switch on (the default, saved on your computer) a new version downloads in the background and the app offers "Restart to update"; it never restarts on its own and installs when you quit. With the switch off it only tells you, with "Download and install". The .deb package cannot update itself: the app tells you a new package is out. Anyone using the desktop app can update it, whatever their role in Teros.

Building an MCA

An MCA is a directory with a manifest.json, a tools.json (auto-generated), and a src/ folder. Each tool lives in its own file. The MCA SDK handles the HTTP transport and connection to the backend automatically.

mcas/mca.my-tool/
├── manifest.json        # Metadata, secrets, availability, runtime config
├── tools.json           # Tool schemas (auto-generated by sync script)
├── package.json
├── tsconfig.json
└── src/
    ├── index.ts         # McaServer setup, tool registration, server.start()
    ├── lib/             # API client, auth helpers, shared utilities
    └── tools/
        ├── index.ts     # Re-exports all tools
        ├── my-tool.ts   # One file per tool
        └── other-tool.ts
// src/tools/my-tool.ts
import type { HttpToolConfig as ToolConfig } from '@teros/mca-sdk';

export const myTool: ToolConfig = {
  description: 'Does something useful',
  parameters: {
    type: 'object',
    properties: {
      query: { type: 'string', description: 'The query to process' },
    },
    required: ['query'],
  },
  handler: async (args, context) => {
    const { query } = args as { query: string };
    // context.getUserSecrets() — fetch API keys configured by the user
    return { result: `You asked: ${query}` };
  },
};
// src/index.ts
import { McaServer } from '@teros/mca-sdk';
import { myTool } from './tools';

const server = new McaServer({ id: 'mca.my-tool', name: 'My Tool', version: '1.0.0' });

server.tool('my-tool', myTool);

server.start();

See packages/mca-sdk/README.md for the SDK reference; any folder under mcas/ is a working example.


Tech Stack

Layer Technology
Frontend React Native (Expo), Tamagui, Zustand, Expo Router
Backend Node.js, TypeScript, ws, Zod
Database MongoDB 7.0
LLM Core Custom adapters per provider
Infrastructure Docker, Docker Compose
Monorepo pnpm workspaces

Contributing

Teros is open source (AGPL-3.0) and contributions are welcome.

# Fork, clone, create a branch
git checkout -b feat/my-feature

# Make changes, test locally
pnpm dev:backend

# Submit a PR

See CONTRIBUTING.md for the contributor agreement and how to open a pull request, and CONTRIBUTORS.md for the people who build Teros.


License

Teros is licensed under the GNU AGPL v3 (AGPL-3.0-only) with additional terms:

  • Use, modify and self-host it for anything. If you offer a modified version to others, including as a network service, share its source under the same license.
  • Products built on Teros keep the attribution "Based on Teros by Teros AI, S.L. — https://teros.ai" visible in their legal notices.
  • The Teros name and logos are not part of the license: forks use their own name and logo. See the Trademark Policy.
  • The MCA kit (mca-sdk, mca-testing, shared) and the MCAs for third-party services are Apache-2.0, so you can build and reuse MCAs anywhere. See NOTICE.md.

Commercial licenses without these obligations are available: [email protected].


Built with ❤️ by @supertowers · GitHub · X

Ähnliche Projekte entdecken

Wird geladen…