MechaShip
Autonomous delivery robots as economic agents.
MechaShip is an open-source reference app that shows the CodecFlow stack working end to end. A physical robot sees the world, makes economic choices, bids on jobs, pays for its own compute, and gets paid through one continuous loop across optr, Fabric, and contracts.
What it proves
Section titled “What it proves”MechaShip shows how a delivery robot can act like an autonomous service, not just a remote-controlled device.
- Perception and navigation: the robot processes sensor data and makes navigation choices through optr.
- On-demand compute: heavy work can offload to Fabric when the robot needs more compute than it has locally.
- Autonomous payments: the robot can pay for compute and receive payment for delivery work.
- Service identity: the robot has its own identity and reputation, so it can bid on work and build trust over time.
- No dispatcher loop: the flow does not require a human fleet manager to manually assign every job.
How it works
Section titled “How it works”- Alice posts a delivery request on-chain.
- Registered mechas respond with price quotes.
- Quotes become bids, and Alice accepts one.
- Payment locks in escrow before the job starts.
- The mecha picks up the package and reports progress.
- GPS data updates the delivery tracker.
- Bob confirms receipt.
- Escrow releases payment and both sides can leave reviews.
Chainlink integration
Section titled “Chainlink integration”MechaShip uses Chainlink CRE for coordination between on-chain requests and physical-world robot activity.
- Delivery Orchestrator: listens for new delivery requests, asks registered mechas for price quotes, and submits bids.
- Uptime Monitor: pings mechas every 60 seconds and updates availability.
- Progress Logger: receives GPS data and writes progress to the tracker contract.
Chainlink featured MechaShip as a demonstration of real-world autonomous agent coordination.
- optr: runs the see-think-act loop inside each mecha.
- Fabric: provides on-demand compute for route planning and obstacle detection.
- x402: handles autonomous payment for compute and delivery work.
- Chainlink CRE: coordinates delivery orchestration, uptime checks, and progress logging.
- SvelteKit: powers the web interface.