by ratel-ai
The self-improvement layer for AI agents. Ratel reads your agent's traces, finds what fails, recommends fixes and runs evals on real sessions before you ship. Self-hosted: one app, one Postgres. Includes the TypeScript and Python SDK
# Add to your Claude Code skills
git clone https://github.com/ratel-ai/ratelLast scanned: 11/29/2026
{
"issues": [
{
"file": "README.md",
"line": 127,
"type": "secret-exfiltration",
"message": "Instruction appears to send credentials/secrets to an external endpoint",
"severity": "medium"
},
{
"file": "README.md",
"line": 132,
"type": "secret-exfiltration",
"message": "Instruction appears to send credentials/secrets to an external endpoint",
"severity": "medium"
},
{
"file": "README.md",
"line": 42,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://raw.githubusercontent.com/ratel-ai/ratel/main/install.sh | sh\"",
"severity": "low"
}
],
"status": "PASSED",
"scannedAt": "2026-11-29T14:01:43.314Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}ratel is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ratel-ai. The self-improvement layer for AI agents. Ratel reads your agent's traces, finds what fails, recommends fixes and runs evals on real sessions before you ship. Self-hosted: one app, one Postgres. Includes the TypeScript and Python SDK. It has 575 GitHub stars.
Yes. ratel passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/ratel-ai/ratel" and add it to your Claude Code skills directory (see the Installation section above).
ratel is primarily written in TypeScript. It is open-source under ratel-ai 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 ratel against similar tools.
No comments yet. Be the first to share your thoughts!
Ratel is a self-hosted platform for AI agents. Your agent sends it traces and its catalog of tools and skills. Ratel reads that traffic and shows you what the agent gets wrong, what people ask it for, and which changes would make it find and finish more.
It is for anyone building or running an agent who wants to see how it behaves and keep that data on their own machines. It runs as one application and one Postgres database, and it needs nothing else:
Model keys are optional. With no key, Ratel makes no outbound model call. The readings that need a model report themselves skipped, workflows keep their tool-order names, and topics are named from their own asks.
You need Docker with Compose 2.24 or later, network access to pull images, about 5 GB of free disk in the Docker VM (the app and Postgres images take under 1 GB, the optional demo image 1.2 GB more, plus your data) and 4 GB of RAM for Docker (8 GB is comfortable). There is no build on your machine.
curl -fsSL https://raw.githubusercontent.com/ratel-ai/ratel/main/install.sh | sh
The installer works on macOS and Linux, on your machine or on a cloud VM. It checks Docker, Compose, RAM and disk, clones the repo at the latest release into ~/ratel (/opt/ratel as root), creates .env with random secrets, pulls the published image of that release, starts the stack and waits for /api/health. On a Linux server with no Docker it offers to install Docker with Docker's get.docker.com script. On a cloud VM it prints the ssh -L tunnel command to reach the console. Run it again to upgrade: it pulls the image of the latest release and restarts. This also upgrades an install that was built from source. It keeps the data volume and the values in your .env (it sets RATEL_VERSION and COMPOSE_FILE), and it stops if the checkout has local changes or is newer than the release.
Options, after sh -s --: --version <X.Y.Z> (default: the latest release; edge is the last build of main), --ref <branch|sha> (build that from source instead, about 5 minutes), --dir <path>, --yes (ask nothing) and --demo (load the demo data). For example:
curl -fsSL https://raw.githubusercontent.com/ratel-ai/ratel/main/install.sh | sh -s -- --yes --demo
On a server with a public IP, --access public puts Caddy in front of the console, on ports 80 and 443, with a Let's Encrypt certificate and a login (basic auth, user ratel). The password is new and printed once. --domain <name> sets the site name (default <public-ip>.sslip.io), --tls internal uses Caddy's own CA in place of Let's Encrypt, and --auth-hash <bcrypt> sets the password's hash. The routes that SDKs and MCP clients call with project API keys (/v1, /v2, /api/v1, /api/v2, /api/mcp) and /api/health pass without the login. A rerun keeps the mode, and --access private turns Caddy off. The installer writes Caddyfile and adds docker-compose.caddy.yml to COMPOSE_FILE in .env, so every docker compose command in the directory includes Caddy. The containers restart after a reboot.
From your laptop, one command creates a VM in your cloud and installs Ratel on it:
curl -fsSL https://raw.githubusercontent.com/ratel-ai/ratel/main/deploy.sh | sh
deploy.sh finds the cloud you are logged in to: AWS (aws sts get-caller-identity), Google Cloud (the account and project of gcloud), Azure (az account show), DigitalOcean (DIGITALOCEAN_TOKEN or doctl) or Hetzner (HCLOUD_TOKEN or hcloud). With several, it asks, or takes --cloud. It uses OpenTofu (tofu), or Terraform when OpenTofu is not installed. It creates one Ubuntu 24.04 LTS VM with 2 vCPU or more, 8 GB of RAM and 30 GB of disk or more, a firewall, a static IP and a dedicated SSH key. It shows the plan and a rough monthly cost per size, and asks before it creates anything. Then it follows the install and prints how to open the console. The modules are in deploy/terraform/.
There are two access modes:
--access public (default): Caddy with TLS and a login, as above. Ports 80 and 443 are open to all, or only to the --allow-cidr ranges (for example a VPN), and then Caddy uses its own CA because Let's Encrypt cannot reach port 80. SSH is open only to your current IP. The certificate is for --domain, or for <ip>.sslip.io with no domain. The login password is printed once, and stays only on your laptop, in ~/.ratel/deploy/<name>/login.--access private: no web port. SSH is open to your current IP and the --allow-cidr ranges, and you reach the console through a tunnel: ssh -i ~/.ratel/deploy/ratel/id_ed25519 -N -L 3000:127.0.0.1:3000 ratel@<ip>.Other options, after sh -s --: --region, --size, --name (default ratel, for more than one deploy), --version or --ref (passed to install.sh; the default is the latest release), --iac terraform|tofu and --yes. The state, the SSH key and the password stay on your laptop in ~/.ratel/deploy/<name>/ (owner-only), so the other commands need no flags:
curl -fsSL https://raw.githubusercontent.com/ratel-ai/ratel/main/deploy.sh | sh -s -- status
curl -fsSL https://raw.githubusercontent.com/ratel-ai/ratel/main/deploy.sh | sh -s -- up # upgrade to the latest release
curl -fsSL https://raw.githubusercontent.com/ratel-ai/ratel/main/deploy.sh | sh -s -- destroy
up on an existing deploy upgrades it: it reruns install.sh on the VM over SSH with --version, or with the latest release. A deploy made with --ref <branch> stays on that branch. If your IP changed, it first opens SSH to the new one. destroy deletes the VM, its disk with all Ratel data and its IP, then the local state. Back up first (see On a server).
Each button opens your cloud's console with Ratel's template, in your account. Nothing is created until you confirm there. The VM runs install.sh, as deploy.sh does, in the public mode (Caddy with TLS and a login for user ratel, with the password that you type) or in the private mode (no web port, an SSH tunnel). The template's version parameter (default latest) sets the release; its ref parameter builds a branch or commit from source instead.
| Cloud | Button | What it opens |
|---|---|---|
| AWS | ![]() |
CloudFormation quick-create, with deploy/cloudformation/ratel.yaml (default VPC, t3.large, Elastic IP) |
| Azure | A custom deployment, with deploy/azure/azuredeploy.json (its own network, Standard_B2ms, static IP) |
|
| Google Cloud | Cloud Shell, with a tutorial that runs ./deploy.sh up --cloud gcp |
The password is in the user data of the VM (AWS) or in its custom data (Azure), base64-encoded. Anyone who can read the VM's configuration in your account can read it. Use deploy.sh when that matters: it gives the VM only the hash.
The manual steps:
git clone https://github.com/ratel-ai/ratel.git
cd ratel
docker compose up -d --wait
This pulls ratelai/ratel at RATEL_VERSION: the value in .env, else the default in docker-compose.yml, which each release sets. Open http://localhost:3000. No configuration is needed.
To run your own changes, build from the checkout with the override file:
docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --build --wait
Or put COMPOSE_FILE=docker-compose.yml:docker-compose.build.yml in .env,