Overview
Cowboy is a Layer 1 blockchain protocol purpose-built for autonomous agents and verifiable off-chain computation. Unlike traditional smart contract platforms, Cowboy provides native support for time-based execution, Python programming, and a fair dual-resource pricing model.Key Insight: Cowboy treats time as a first-class citizen in the protocol, enabling truly autonomous agents that can schedule their own execution without relying on external infrastructure.
The Problem Space
Modern blockchain platforms face three fundamental challenges:1. No Native Time Awareness
Smart contracts cannot schedule their own future execution. This forces developers to rely on:- External bots (centralized, unreliable)
- Keeper networks (expensive, complex)
- User-triggered transactions (poor UX)
2. Unfair Resource Pricing
Single gas metrics cannot distinguish between:- Computation (CPU cycles)
- Storage (state growth)
- Data transfer (bandwidth)
- Heavy computations subsidized by storage users
- Storage bloat subsidized by compute users
- Unpredictable costs for developers
3. Limited Computation
On-chain VMs are intentionally constrained:- No AI/ML model inference
- No complex data processing
- No external API calls
- No access to off-chain data
Cowboy’s Solution
1. Protocol-Level Timers
Cowboy introduces native timers as a core protocol primitive. Key features:- Tiered Calendar Queue: O(1) enqueue/dequeue for near-term timers
- Dynamic Gas Bidding (GBA): Actors bid for priority using protocol-supplied context
- Autonomous Execution: No external keeper infrastructure required
2. Dual-Metered Gas Model
Cowboy independently meters and prices two dimensions:Cycles (Computation)
What it measures: CPU work - bytecode instructions, function calls, operationsUse case: Python code execution, cryptography, data processingMetering: Instruction-level tracking in the VM
Cells (Data/Storage)
What it measures: Bytes - transaction payloads, storage writes, return dataUse case: State storage, large inputs/outputs, blob commitmentsMetering: Event-based tracking at I/O boundaries
- Fair pricing: Pay for what you use
- Predictable costs: Independent fee markets
- DoS protection: Separate limits prevent abuse
3. Verifiable Off-Chain Compute
Cowboy enables actors to outsource computation to a decentralized runner network while maintaining verifiability. Key properties:- VRF-based selection: Deterministic, verifiable runner assignment
- Asynchronous execution: Deferred callback model (per CIP-2)
- Configurable verification: Proof requirements are specified by the developer within the framework defined in CIP-2
- Market-driven pricing: Runners compete on price and reliability
Core Architecture
Actor Model
Cowboy uses an actor-based execution model:- Isolated state: Each actor has its own storage
- Message-driven: Communicate via asynchronous messages
- Single-threaded: One message processed at a time (deterministic)
- Autonomous: Can schedule its own future execution
Python VM
Actors are written in Python and execute in a deterministic VM (no JIT, software FPU) VM guarantees:- ✅ Determinism: Same input → same output, always
- ✅ Sandboxing: No file I/O, network, or system calls
- ✅ Resource metering: Every operation has a cost
- ✅ Memory limits: Bounded per call (deterministic, configurable)
Fee Markets
Two independent EIP-1559 style markets:Key Differentiators
| Feature | Traditional Chains | Cowboy |
|---|---|---|
| Timers | External keepers required | Native protocol support |
| Language | Domain-specific (Solidity, Move) | Python |
| Gas Model | Single metric | Dual-metered (Cycles + Cells) |
| Off-chain Compute | Trust oracles | Verifiable runner network |
| Autonomy | Reactive only | Fully autonomous |
| Resource Pricing | Unified, often unfair | Independent, fair markets |
Design Principles
1. Determinism First
1. Determinism First
Every operation must produce identical results across all nodes. This guides every VM design decision.
2. Fair Resource Pricing
2. Fair Resource Pricing
Different resources (compute, storage, data) should be priced independently based on their actual costs.
3. Autonomous by Default
3. Autonomous by Default
Actors should be able to schedule their own execution without external dependencies.
4. Verifiable Off-Chain
4. Verifiable Off-Chain
Heavy computation can happen off-chain, but results must be verifiable on-chain.
5. Developer-Friendly
5. Developer-Friendly
Use familiar languages (Python) and patterns. Don’t force developers to learn niche languages.
Next Steps
Key Innovations
Dive deeper into Cowboy’s technical innovations
Quick Start
Build your first Cowboy actor
Architecture
Understand the system architecture
Examples
Study working examples via Quickstart

