---
title: "coding.sh: open-source observability and evals for AI agents"
description: "Record what Claude Code, Codex, Cursor and 10 other AI agents did and what it cost, then test changes with evals. Local-first and open source."
canonical: https://coding.sh/
human_url: https://coding.sh/
markdown_url: https://coding.sh/index.md
agents_url: https://coding.sh/agents.md
llms_url: https://coding.sh/llms.txt
updated: 2026-11-22
---

# The Observability Layer for Agents.

Record, measure, compare and benchmark every agent run.

Agent prompt npx Script

`Set up coding.sh on this machine…` `npx coding.sh init` `curl -fsSL https://coding.sh/install | sh`

Paste it into your coding agent. Needs Node.js 22.16 or newer. On Windows: `npx -p coding.sh codingsh init` On Windows, run it in Git Bash. It does not work in PowerShell or cmd.

[Get started](https://coding.sh/docs/quickstart)

Free and open source. [What's new in coding.sh `v0.1.7`](https://coding.sh/changelog/v0-1-7)

Works with

- Claude Code
- Codex
- Cursor
- OpenCode
- Antigravity CLI
- GitHub Copilot
- Amp
- Goose
- Pi
- Factory Droid
- Aider
- Devin CLI
- T3 Code

## Every agent, one record

Your agents on one side. Sessions, cost and evals on the other.

- sessions
- cost
- evals
- experiments
- benchmarks
- gateways
- sdk
- 01

### 1. Install

Run the command above. It finds the agents you use and asks before it changes their settings.

- 02

### 2. Keep working

Use your agents the way you do now. Each session is saved on your machine as it runs.

- 03

### 3. Open the viewer

Run `coding.sh ui` to see every session and where it broke.

## What you can do with it

Read a session, add up what it cost, test a change, and track the AI calls your own app makes.

### Find the step that broke

Open any session to see each prompt, command and file edit in order. When a command fails, the lines that say why are marked red.

![A Claude Code session in the coding.sh viewer: its title, agent, duration and estimated cost, then its steps in order. The npm test run is red because one test failed. A few steps later the agent edits src/store/sqlite.ts to fix it.](https://coding.sh/_astro/hero-session.Cx_x73Ig_1IezMg.webp)

### See what each agent costs

```text
$ coding.sh usage --since 7d
AGENT        SESSIONS  TOKENS  COST
claude-code  29        9.8M    ~$6.92
codex        14        4.0M    ~$2.08
opencode     5         1.1M    ~$0.7937
```

[Track cost per session](https://coding.sh/docs/cost)

### Test a change to AGENTS.md

what coding.sh reports

64% 79%

The same 20 tasks, 5 runs each, before and after.

[Test an AGENTS.md or skill change](https://coding.sh/docs/how-to/test-agents-md-change)

### Track the AI calls in your app

```text
import { observe } from "@codingdotsh/sdk";
const openai = observe(new OpenAI());
```

Each request shows up with its model, tokens, cost and time.

[Read the SDK guide](https://coding.sh/docs/sdk)

## Questions

Short answers here. The long ones are in the docs.

[Read the docs FAQ](https://coding.sh/docs/faq)

Does anything leave my machine?

No session data. The only default request is a daily update check (off with CODING_SH_NO_UPDATE_CHECK=1). Sessions are saved in ~/.coding.sh and nothing else is sent unless you set up an export yourself.

Will it slow my agent down?

No. The hook adds one line to a file and exits. The rest of the work happens after the session.

Does it change my agent's settings?

Only after you say yes. It backs up each file first, and coding.sh uninstall takes its hooks out again.

What does it cost?

Nothing. Your model spend stays what your agents already cost.

## Try it on your next session

Agent prompt npx Script

`Set up coding.sh on this machine…` `npx coding.sh init` `curl -fsSL https://coding.sh/install | sh`

Paste it into your coding agent. Needs Node.js 22.16 or newer. On Windows: `npx -p coding.sh codingsh init` On Windows, run it in Git Bash. It does not work in PowerShell or cmd.

[Get started](https://coding.sh/docs/quickstart)

To set coding.sh up for a user, follow the agent workflow at [/agents.md](https://coding.sh/agents.md).
