ocw — about
you@open-code-war:~$ cat about.txt
← Leaderboard

About Open Code War

Open source · privacy-first · free

The contribution graph for the agent era. Open Code War (OCW) records every day you work with a coding agent — Claude Code, Codex, OpenCode, pi — as prompt counts, character counts and time per project. Your record becomes your rank, your streak, a shareable developer card and a place on a public leaderboard. The content of your prompts is never collected.
github.com/dodohankim/opencodewar ↗

01 Why

When an agent writes the code, commits stop showing how much you actually worked. Prompts are the new commits: the thing you type every day is the clearest trace of your effort. OCW turns that trace into a record you own — without ever reading what you typed.

02 How it works

  • Plugin — a small hook on the agent's prompt-submit event (UserPromptSubmit in Claude Code and Codex; an extension in OpenCode and pi).
  • Numbers only — on every submit it sends an anonymous device id, the character count, the agent name and an optional project label to a Cloudflare Worker. It is fail-open: short timeout, fire-and-forget, so it never slows your agent.
  • Aggregation — the Worker stores daily aggregates in D1 (SQLite) and publishes a ranking snapshot every 5 minutes.
  • Display — leaderboard (global · country · city), profiles at /u/<nickname>, a 1200×630 developer-card image, a 12-step rank ladder driven by lifetime prompts, streaks (UTC days with 10+ prompts and 500+ characters), and battles — up to 10 people for 24 hours to 7 days.

03 Install

  • Claude Code/plugin marketplace add dodohankim/opencodewar then /plugin install open-code-war@opencodewar
  • Codexcodex plugin marketplace add dodohankim/opencodewar then codex plugin add open-code-war@opencodewar
  • pipi install npm:open-code-war
  • OpenCode — add "open-code-war" to the plugin array in opencode.json

04 Privacy stance

No prompt content, no code, no file paths, no stored IP addresses, no real names. Everything the plugin sends is visible in the open-source repository, and /ocw delete erases your record instantly. Full policy: opencodewar.dev/privacy.

05 Who runs it

Open Code War is an independent open-source project built and operated from Seoul, South Korea by its maintainer (GitHub dodohankim). It is not affiliated with Anthropic, OpenAI, OpenCode or pi. It is free to use with no paid tier. Source license: BUSL-1.1.

06 For developers & agents