Skip to main content

Connecting your coding agent

Attribute cost to the agent that shipped the work, per session or per PR.

To turn spend into cost per PR, Yardstick needs to know what your agent cost. The Connect page gives you a coding-agent setup with a key you drop into your agent so each session reports its token usage. Claude Code, Cursor, Codex & Gemini CLI all have guided setups (the gateway recognizes each tool and attributes its calls), and PR-level attribution (which agent shipped which PR) is available on Pro & up.

If you would rather not instrument the agent directly, use the AI gateway or OpenTelemetry instead; both capture cost automatically.

Did this answer your question?