by Pal-AI-Lab
Event-stream AI Agent framework for building your persona bot 🍊
# Add to your Claude Code skills
git clone https://github.com/Pal-AI-Lab/CorticoCortico is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Pal-AI-Lab. Event-stream AI Agent framework for building your persona bot 🍊. It has 385 GitHub stars.
Cortico's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Pal-AI-Lab/Cortico" and add it to your Claude Code skills directory (see the Installation section above).
Cortico is primarily written in TypeScript. It is open-source under Pal-AI-Lab on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh Cortico against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Cortico is an agent harness designed around an event stream, built for autonomous, continuously running agents with mixed real-time input. It suits persona bots, AI streamers, roleplay, companionship, and many other downstream tasks. A Cortico bot is far more than a chat bot: with an extensible agent system designed around the event stream, Cortico helps you build persistent AI agents capable of handling complex inputs. It supports flexible external extensions, allowing a single bot to simultaneously observe and act across multiple environments—including chat platforms, live games, and even physical environments. Cortico's goal: bring your AI to the world!
Languages: the WebUI is in 简体中文, 繁體中文, English, 日本語, 한국어, Français, Deutsch, Español (Latinoamérica), Português (Brasil), Italiano and Русский. The WebUI language does not change what the model reads; text Core adds to the model context is in English.
Use cortico-world-vtuber to start creating your own AI VTuber right away: it drives a Live2D model through VTube Studio, speaks through streaming TTS, times subtitles with a forced aligner and pushes the overlay into OBS, all as one Cortico World.
It is released under its own source license (AGPL-3.0 + CLA), so it lives in a separate repository instead of the Cortico main tree.
Use to build the Cortico extension or adaptation you want, fast!
How to use: first, clone the repository from https://github.com/Pal-AI-Lab/Cortina to your machine.
npm packages with the cortico-world, cortico-provider or cortico-bot keyword are listed on the WebUI's Extensions page with their total, 30-day and 7-day downloads from npm.
Cortina is designed on the TINA (There Is No App) Spec proposed by Pal AI Lab. There is no app here: language is the code, the agent is the runtime.
Requires Node 22+.
corepack pnpm install
pnpm start
On your first launch with an empty deployment directory, Cortico automatically initializes a default deployment named mybot (using the reference bot cormini with console chat enabled) and spins up the WebUI at:
http://127.0.0.1:7788/
The console page opens with three onboarding steps: configure a model endpoint, inspect active Worlds, and adjust the system prompt. Once an endpoint is configured, click Say hello to let the bot initiate conversation. All endpoints, credentials, and runtime parameters can be adjusted directly from the WebUI; saved changes apply to the next request, and a managed runtime's launch parameters apply on its next start.
The WebUI starts in language from config.json, else CORTICO_LANGUAGE, else the system locale (Simplified Chinese when no locale is available). Settings → General switches it for the current browser without restarting the bot.
Each deployment is an isolated configuration directory inside deployments/ (see deployment.md). To add another one:
pnpm start --new
Pick a bot package, a directory name and a display name; the new deployment starts right away, with endpoints and everything else configured from the WebUI. To start a specific deployment by name:
pnpm start second
The launcher scripts (pnpm start, ./start.sh, and start.bat on Windows) automatically install missing dependencies, build WebUI assets when they are missing or older than the source, list every deployment for selection on an interactive terminal (including an entry for creating a new one), and restart processes on request from the WebUI.
Cortico strictly separates concerns across four distinct layers:
| Layer | Responsibility | Directory |
|---|---|---|
| Core | Manages session lifecycles, event streams, and model invocations. Semantics-free. | src/core/ |
| Persona | Defines the semantics of a bot category: context synthesis, cognitive loop, and Memory protocols. | bots/<name>/persona/ |
| Memory | The authoritative persistence store for internal state; layout and lifecycle are chosen by the Persona. | <deployment>/memory/ |
| World | The isolated boundary to an external environment: event ingestion, tool declarations, and environment prompts. | src/worlds/<id>/ |
| Bot | Assembly definition: couples one Persona with a designated set of Worlds. | bots/<name>/index.ts |
| Document | Topic |
|---|---|
| deployment.md | Deployment layouts, deployment roots, and launcher behaviors |
| configuration.md | Four-layer config cascading, configuration groups, and hot reload |
| providers.md | Provider modules, model catalogs, endpoint configurations, and pricing |
| runtimes.md | Local runtimes and model files for llamacpp |
| webui.md | WebUI architecture, live monitoring, and custom module pages |
| sessions.md | Session lifecycle, token capacity management, and context handoff |
| runs.md | Runtime directories, structured logs, and pnpm logq CLI |
| personas.md | Persona lifecycle hooks, Memory architecture, and bot assembly |
| worlds.md | The World contract: events, tools, and environment prompts |
| world-compatibility.md | Compatibility levels for other bot architectures mounting Cortico Worlds |
| extensions.md | Extension package specifications, manifests, and dynamic loading |
| environment-variables.md | CORTICO_* environment configuration and the .env hierarchy |
| windows.md | Windows environment compatibility and setup |
| development.md | Development workflows, dual tsconfig setup, and test architecture |
| World | ID | Integration & Capabilities |
|---|---|---|
| Console | console |
Interactive two-way conversation within the WebUI |
qq |
Multi-group and direct message channels with optional vision model transcription | |
| Bilibili Live | bilibili |
Real-time danmaku, superchats, gifts, guards, and viewer traffic monitoring with local OBS overlay |
| Minecraft | minecraft |
Mineflayer client for vanilla servers: game state observations and high-level autonomous action dispatch |
| Web Search | websearch |
Real-time web search through the Brave Search API or the DeepSeek Search API; either address can point at a compatible proxy |
Each release also publishes minecraft, qq, bilibili and websearch to npm as cortico-world-<id> at the framework's version, for apps built on Cortico that do not bundle them. Where the framework already has a World with the same id, the installed package is not loaded.
| Provider | Supported Services |
|---|---|
openai-responses-compat |
Any model API supporting the Responses protocol specification |