The Synthesis Hackathon — Build an Agent for Pearl ($1K), Monetize Your Agent on Olas Marketplace ($1K), Hire an Agent on Olas Marketplace ($1K).
Olas is a decentralized AI agent marketplace. Pearl is their agent runtime. This project demonstrates the full lifecycle: build → monetize → hire.
08-olas-agent/
├── src/
│ ├── pearl-agent.ts # Agent for Olas Pearl runtime
│ ├── marketplace.ts # Olas Marketplace interaction
│ └── agent.ts # Full lifecycle agent
├── scripts/
│ └── demo.ts # Demo script
├── package.json
├── tsconfig.json
└── README.md
initialize()— Set up the agent with its capabilitieshandleRequest(request)— Process incoming service requestsgetCapabilities()— Return list of services this agent providesreportHealth()— Health check for Pearl runtime
Services offered:
- Market analysis
- Portfolio monitoring
- Risk assessment
registerService(agentId, description, price)— List service on marketplacebrowseServices(category)— Browse available agent serviceshireAgent(serviceId, task, dryRun)— Hire another agentcompleteJob(jobId, result)— Complete a hired jobgetEarnings()— Track monetization
build()— Set up the Pearl agentmonetize()— Register on marketplacehire(task)— Hire other agents for tasksrunFullLifecycle(dryRun)— Demonstrate the complete cycle
npm installnpm run demoOLAS_API_KEY=your_key npm run demo -- --live| Variable | Description |
|---|---|
OLAS_API_KEY |
Olas API key for live marketplace |
When OLAS_API_KEY is not set, all external APIs are mocked — the demo runs fully offline with simulated data.
- Build an Agent for Pearl ($1K) —
PearlAgentinsrc/pearl-agent.ts - Monetize Your Agent on Olas Marketplace ($1K) —
registerServiceinsrc/marketplace.ts - Hire an Agent on Olas Marketplace ($1K) —
hireAgentinsrc/marketplace.ts
MIT