Welcome to the Beckn Onix developer guide — your one-stop walkthrough to set up, run, and test a local Beckn network on your machine.
Beckn Onix is a local reference implementation of the Beckn Protocol — simulating key roles (BAP, BPP, Registry, Gateway) in an open network.
It helps you:
- Understand Beckn’s API and message flow
- Spin up a local Beckn-compatible network
- Run test transactions with Postman
- Extend services for your domain
Install these tools before starting:
- Docker & Docker Compose
- Node.js & npm
- Postman
- Git
- Unix-like shell (Linux/macOS or WSL on Windows)
git clone https://github.com/beckn/beckn-onix.git
cd beckn-onix
chmod +x beckn-onix.sh
./beckn-onix.shdocker ps -aCheck that MongoDB, Redis, RabbitMQ, gateway, registry, bap/bpp containers are all up.
Open the Registry Admin Panel (e.g. http://localhost:3030)
- Username:
root - Password:
root
- Go to the Admin tab
- Click Network Participant
- Click the ✏️ icon on
bap-network
- Switch to the Network Role tab
- Click ✏️ to edit the role
- Set Status to
SUBSCRIBED - Click Done
- Go to Beckn > Network Domain
- Click Add
- Fill:
- Name:
retail:1.1.0 - Description:
retail:1.1.0
- Name:
- Click Save & More
👉 For full Postman setup, variable definitions, and flow sequence:
📄 End-to-End Transaction Guide
Contains environment-wide settings like hostnames, ports, and service names.
Open an editor to view or edit:
config/default.yml
Controls telemetry, Layer 2 usage, Redis config, and sync intervals.
To access and edit it:
docker exec -it <container-name> shOpen:
config/default.yml
Example: disable telemetry and Layer 2 enforcement
telemetry:
enabled: false
url: ""
batchSize: 100
syncInterval: 30
redis_db: 3
useLayer2Config: false
mandateLayer2Config: falseRestart the internal services:
pm2 restart 0 1 2
exitRepeat for:
sandbox-apibap-clientbap-networkbpp-clientbpp-network
docker logs -f bap-client
docker logs -f bpp-network
docker logs -f gateway
docker logs -f registrydocker exec -it redis redis-cli FLUSHALL🔗 Detailed End-to-End Transaction Guide
If you're looking to simulate energy transactions like DER management, EV charging, or smart appliances, follow this domain-specific setup guide:
👉 Energy Transactions Setup Guide
It walks you through setting up a Strapi-based BPP adapter, MySQL, Postman collections, and more.
You’ve successfully set up a Beckn-compliant local network and can now run test transactions, explore logs, and build apps on top of the protocol.
For support:
👉 Join the Beckn Discord
🌐 Visit https://becknprotocol.io



