A home for your agents · On your computer and in your AWS account

Small beginnings.
Room to grow.

Rat Things is an open-source, self-hosted control plane for Codex and Pi Durable. Start on your computer with your ChatGPT subscription. Grow into your AWS account with per-session EC2 or Lambda MicroVM workers and encrypted S3/DynamoDB state.

Engineering preview · start with your ChatGPT subscription · grow into AWS

Durable agents
keep working after you step away
Fixed access
permissions are resolved before each run
Connected work
Slack, Linear, private files, and accounts
OpenAPI
one discoverable API for products, CLIs, and agents

Start small. Stay as long as you like.

Local Sessions keep conversations and follow-ups together without an AWS account. Stay here while it fits. Add your own cloud workspace for managed execution, schedules, connected accounts, or more concurrent work.

One desktop and the same Agent, Session and Turn APIs. Workspace histories stay separate; connecting AWS does not migrate a running Session.

  1. 01

    Sign in once

    npm ci
    npm run rat-things -- login
    
    # connect to your configured deployment
  2. 02

    Open your workspace

    npm run console:build
    npm run console:serve
    
    # choose a small first task
  3. 03

    Keep going

    npm run rat-things -- sessions list
    
    # reopen a saved conversation
    # or connect your AWS workspace

Use it from
the interface you own.

Rat Things is a self-hosted AWS stack with no central Rat Things service. A CLI, your product, another agent, a schedule, or an authenticated provider event can use the same public API and durable Session model.

Operator or individual

CLI or small console

Create Agents and Sessions, follow streamed Items, return function results, and manage Vault credentials.

rat-things sessions list

Embedded product

Your UX, our primitives

Keep customer identity and the provider app in your product or AWS account. The self-hosted Rat Things stack can run PKCE callbacks and refresh; credentials remain in your Secrets Manager.

POST /v1/agents

Agent-to-agent

Machine-readable backend

Give an agent the deployment URL. It discovers the installed contract, starts with Agents and Sessions, and opens deeper controls only when needed.

GET /.well-known/rat-things Agent quickstart

Events and schedules

Automation without a UI

Schedules select an owned Agent and environment. Provider events pass authentication before submitting Session input through their own ingress routes.

cron(0 8 ? * MON-FRI *)

The host decides whether one deployment serves one person or many authenticated users. Rat Things derives an owner from each trusted principal and keeps Agents, Sessions, Vaults, and files within that boundary.

Turn conversation
into tracked work.

Start with an approved request in Slack. Let one isolated Session find the source context, check Linear for existing work, and create or update the issue through exact OAuth-backed operations.

Slack and Linear are separate verified Connections. The agent receives only the accounts and operations admitted before launch; neither credential enters its prompt or workspace.

Explore integrations, accounts, and permissions
# customer-ops 01 · Request in Slack
You

@Rat Things Find the approved renewal decision. Check Linear, then track any open security work with the source context.

Rat Things

I found the approved annual renewal and no matching issue. I created ENG-482 with the two security gaps, owner, and source summary.

Slack search · Linear search + create · durable Session
You

Move it to In Progress and add the rollout note.

✓ Same thread · same durable conversation · bounded Linear writes
Linear 02 · Tracked outcome
ENG-482In Progress

Close renewal security gaps

Resolve the security review and confirm the rollout owner before the annual renewal is finalized.

Project
Customer renewals
Assignee
Maya Chen
Priority
● High
Rat Things

Created from the approved #customer-ops decision. Added the two open items and rollout note.

Just now · app actor
01

Install both accounts

Connect Slack and Linear through deployment-owned OAuth. Rat Things verifies each provider identity and stores issued credentials in the host vault.

02

Resolve a fixed envelope

Select the Slack read and Linear read/write operations this Session needs. Provider scopes, grants, profiles, and resource limits all intersect.

03

Research before writing

Search the source thread and existing issues first. The agent can create, update, or comment only through reviewed GraphQL documents.

04

Keep the work durable

The Slack thread, Linear result, Turn and Item history, generated files, and saved runtime state remain traceable across clients and compute.

Bring Slack and Linear into one workflow.

Connect both accounts, choose what Rat Things can do, and keep every handoff tied to the conversation that started it.

Connect issue tracking to your agent.

Install a verified Linear workspace, choose its account and operation grants, and expose the needed actions through declared MCP or application-function tools.

Sessions retain tool activity and results. Keep notification delivery separate from tool access, and enforce duplicate-creation protection in the tool implementation.

Set up Linear

One contract.
As many trusted integrations as you choose.

Linear, Slack, and Stripe are built-in examples of Rat Things' Integration Contract, not the boundary of the system. Add the OAuth or API services your deployment needs by declaring authentication, account identity, operations, schemas, and a fixed provider origin—then compile each reviewed adapter into the trusted host.

The CLI and control API use that contract to install accounts, check connection health, and manage grants. Trusted tool implementations use the same credential broker and permission checks.

Build a trusted integration
  1. 01Describe

    Publish authentication choices, account metadata, operation schemas, access levels, and required provider scopes.

  2. 02Verify

    Resolve the provider's real tenant and subject before a credential becomes an installed Connection.

  3. 03Constrain

    Intersect provider authority, the persistent grant, the profile, and declared tools and resource constraints.

  4. 04Expose

    Generate safe account setup, health, reconnect, “used by,” and agent-tool surfaces from the installed contract.

  5. 05Reuse

    Bind authenticated provider events and schedules to owned Agents and submit work through Sessions.

Extensions are trusted host code. Rat Things does not load arbitrary provider packages inside the agent. Credentials stay in the host vault, provider calls use reviewed adapters, and the agent receives only admitted operation schemas.

Follow each Turn.
Keep its results.

The reference console selects Codex or Pi Durable, creates Sessions, refreshes saved Items, submits function results, and cancels active Turns. Saved history remains available after a reload.

Manage reusable Agents and write-only Vault credentials from the same authenticated client.

rat-things sessions listreads the same durable Session resources.

rat-things consoleopens the local signed client for your deployment.

Explore the Agents API

The reference console and CLI use the same Agents, Sessions, Turns, Items, environments and Vault contracts.

The machine can stop.
The work continues.

Accepted input belongs to a durable Session Turn. Rat Things stores Items, artifacts, and runtime state outside compute. Pi can recover pending tasks and child agents on a replacement worker. Workspace recovery follows each runtime's checkpoint and storage rules; running processes are not restored.

  1. 01Authenticate

    Authenticate the caller or provider event, then resolve the owner from IAM or an operator-owned binding.

  2. 02Commit

    Commit Session input with an idempotent receipt.

  3. 03Prepare

    Resolve the saved Agent configuration and restore available native state.

  4. 04Execute

    Launch or resume Codex or Pi Durable with the tools and access resolved before the run.

  5. 05Retain

    Read saved Turn Items and artifacts. Export anything you need before deleting a Session.

Autonomous inside.
Unavailable outside.

Choose permissions before creating a Session. The agent can use what you allowed; everything else is unavailable. Rat Things never pauses to ask for more permission during a Turn.

Read the complete capability contract

Inside the envelope

Use it autonomously

Admitted shell, files, browser actions, network destinations, and connected-account operations are available within the resolved Session configuration.

Outside the envelope

Absent or denied

The tool is missing, IAM returns AccessDenied, URL or egress policy blocks the destination, or the broker rejects the operation before reading a credential.

No suspended permission state: denied operations do not create approval requests. To change authority, configure an Agent and create a new Session with the required tools and environment.

Build, connect, run, and retain.

01

Build and schedule

Configure an Agent, start a Session, or bind it to a rate or cron schedule.

02

Connect accounts safely

Verify several accounts per integration, monitor health, reconnect the same identity without rebinding workflows, and narrow provider access before use.

03

Declare browser tools

Expose browser operations through functions or MCP, constrain their access, and retain selected screenshots and recordings as Session artifacts.

04

Continue Sessions

Read Turns and Items, send follow-up input, submit function results, and continue work across clients.

05

Retain and share files

Keep generated files privately, inspect them through owner-gated viewers, or create expiring external links.

06

Use one Session model

API calls, schedules and authenticated provider events use the same Agent, Session, Turn and Item primitives.

07

Embed the API

Discover OpenAPI, JSON Schemas, integration manifests, stable errors, and capability profiles from each deployment.

08

Choose Codex or Pi Durable

Use Codex with your configured provider or Pi Durable with approved Bedrock models. Keep the same Session API, schedules, and result delivery.

Explore the complete guides and agent reference

Work that survives
the machine.

Sessions, files, schedules, connections, and results live outside ephemeral compute. Each Session resolves its authority before execution and retains Turns and Items for connected clients.

Know what stays running.
Measure what work costs.

Your deployment pays for API requests, connected workers, model usage, storage and networking. A worker that preserves live processes continues to consume compute while idle.

Understand the cost drivers

Account for the complete deployment

Model
Requested model, input and output tokens, cached context, and tool usage.
Compute
API CPU and memory usage plus the lifetime of each connected worker.
Storage
Encrypted Session state, workspace files, artifacts and retained logs.
Network
NAT, private endpoints and transferred data.

Measure startup, continuation and cost in your own region with the selected backend and model. Retention policies and explicit Session deletion control resources that outlive a Turn.

A small public contract.
Durable AWS internals.

Your product, another agent, a CLI, or a signed event submits work. Rat Things authenticates it, accepts a Session input, executes it in your AWS account, and retains the result.

Your product, agent, or event gives work to Rat Things and receives durable replies, files, and URLs
OverviewDefine · Run · Retain

Start with one focused Agent.

Deploy one backend, configure an Agent and environment, and verify one bounded task. Add accounts and deeper capabilities after that path feels dependable.

Engineering preview. Review the current capabilities and limits when choosing a workload.