TokenEconomizer
코딩 에이전트를 위한 경험 기반 블랙박스 비용 제어
Open-source model-agnostic BYOK GitHub bot that runs in GitHub Actions
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗New — Pullfrog is now free for personal and open-source usage.
Pullfrog is the BYOK CodeRabbit that runs in your GitHub Actions. It listens for GitHub events — PRs opened, issues created, reviews submitted, CI failures — and triggers agent runs based on your configuration, via a pullfrog.yml workflow that uses this open-source action. You control the infrastructure, the keys, and the costs.
Pullfrog is not an agent itself. It wraps vanilla Claude Code, Codex, and OpenCode, selecting the one that matches your BYOK or bring-your-own-subscription configuration — so every run uses the vendor's real agent, and it reads the repo-level config you already keep for it: CLAUDE.md or AGENTS.md, skills, custom commands, and repo-level MCP servers.
Out of the box, it can:
@pullfrog in any issue, PR, or comment. It pulls in the surrounding context and figures out what to do. Prompt from the console for anything else.Each automation can be toggled from the dashboard and customized with per-trigger instructions.
Run one command in any local repo:
npx pullfrog init
Or install from the browser. Setup takes about two minutes: install the GitHub App, add the pullfrog.yml workflow with one click, and pick a model. See getting started.
No API key required. Connect a coding-agent plan once and every run bills against it:
| Plan | Connect with |
|---|---|
| Claude | npx pullfrog auth claude |
| Codex / ChatGPT | npx pullfrog auth codex |
| Grok | npx pullfrog auth grok |
| Kimi Code | a Kimi Code key as KIMI_API_KEY |
| OpenCode Go | an OpenCode key as OPENCODE_API_KEY |
Pullfrog works with any LLM provider: Anthropic, OpenAI, Google, xAI, Mistral, DeepSeek, OpenRouter, and more. Switch models with a config change. Two more ways to pay for tokens:
Pullfrog is free for developers on personal GitHub accounts and free for open-source repos. Pro is $30/month for the whole organization with no per-run or per-seat billing — required for an org's private repos, optional everywhere else. Pullfrog also covers model cost for impactful open-source projects — apply here.
The same pullfrog/pullfrog@v0 action that powers the automations above also works as a step in your own workflows — an agent as one stage of a larger pipeline. The action takes a prompt and the provider key of your choice; the only permission it needs is id-token: write, which lets it mint its own short-lived GitHub token.
# .github/workflows/agent.yml — run any prompt on demand
name: Agent
on:
workflow_dispatch:
inputs:
prompt:
description: What should the agent do?
required: true
jobs:
agent:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v6
- uses: pullfrog/pullfrog@v0
with:
prompt: ${{ inputs.prompt }}
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
The action also exposes a result output that subsequent steps can consume. See CI integration for the full guide.
name: Release
on:
push:
tags: ['v*']
permissions:
id-token: write
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Generate release notes
id: notes
uses: pullfrog/pullfrog@v0
with:
prompt: |
Generate release notes for ${{ github.ref_name }}.
Compare commits between this tag and the previous tag.
Format as markdown: summary paragraph, then ### Features, ### Fixes, ### Breaking Changes sections.
Omit empty sections. Be concise.
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
# write to file to avoid shell escaping issues with special characters
- name: Create GitHub release
run: |
notesfile="$RUNNER_TEMP/release-notes-$GITHUB_RUN_ID.md"
printf '%s' "$NOTES" > "$notesfile"
gh release create ${{ github.ref_name }} --title "${{ github.ref_name }}" --notes-file "$notesfile"
env:
GH_TOKEN: ${{ github.token }}
NOTES: ${{ steps.notes.outputs.result }}
For longer prompts you want to version and reuse, commit the prompt text to the repo and pass its path with prompt_file instead of inlining it. The path is resolved relative to GITHUB_WORKSPACE, and it is mutually exclusive with prompt — set exactly one.
# .github/workflows/triage.yml
- uses: actions/checkout@v6
- uses: pullfrog/pullfrog@v0
with:
prompt_file: .github/pullfrog/triage.md
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
Pass a JSON Schema via the output_schema input to make the agent's output required and validated — the bridge between an agent's reasoning and the hard steps that follow it. See capturing agent output for the details and a worked example.