git clone https://github.com/BlockRunAI/runcode
cd runcode
npm install
npm run buildnpm run dev # Watch mode — recompiles on save
npm start # Run the agent
npm test # Deterministic local tests
npm run test:e2e # Live E2E tests (model API required)- TypeScript strict mode
- ESM modules only
- Node >= 20
- Fork the repo
- Create a feature branch
- Make your changes
- Run
npm run buildto verify compilation - Run
npm testbefore opening a PR (npm run test:e2eif relevant to your change) - Submit a PR with a clear description
RunCode uses @blockrun/llm for model access and x402 payments. The agent loop is in src/agent/, tools in src/tools/, and the terminal UI uses Ink (React for terminals).
Apache-2.0