Local-first agent scheduling & runtime. Zero cloud. Runs on your machine only.
npm install
npm run demo # See working example
npm test # Run unitsimport { schedule, run, syncState } from 'edge-run';
// Schedule agent job
const job = await schedule({
agent: { id: 'my-agent', type: 'node', entrypoint: './my-agent.js' },
trigger: 'immediate',
input: { data: 'hello' }
});
// Run agent directly
const result = await run(job.agent, job.input);
console.log(result.output);
// Sync (MVP sim)
await syncState();schedule(options: ScheduleOptions): Queue with resource/trigger checkscancel(jobId: string)status(jobId: string)run(agent: AgentConfig, input: unknown)syncState(options?)
See /demo for examples. Full types in src/types.ts.
- All data stays local
- Resource-aware scheduling (CPU/Mem/Battery)
- Triggers: immediate, daily, on-wifi/charge (sim)
- Isolated runtime (subprocess)
npm run build # tsc
npm run dev # ts-node src/index.tsMIT License. v0.1.0 MVP shipped! 🚀
Part of the Agent Builder Suite
→ capkit: Scoped capabilities for agents
→ quickbench: Reproducible agent evaluation
→ edge-run: Offline-first orchestration
→ connector-starter: Generate adapters fast (coming soon)
Built for builders who ship. MIT licensed. Local-first by design.
