This is the fastest way to get a working Orchestrator. Run the wizard, answer the prompts, and you'll have a running API in under 2 minutes.
Set up OFFER-HUB Orchestrator locally — fast path with the setup wizard or manual Docker setup.
Choose the setup path that fits your workflow:
create-offer-hub-orchestrator is a one-command interactive setup wizard. It configures your .env, runs database migrations, and bootstraps the platform user — so you can skip the manual steps entirely. For a full breakdown of each prompt, generated environment files, and the platform bootstrap step, see the Scaffolder Guide.
This is the fastest way to get a working Orchestrator. Run the wizard, answer the prompts, and you'll have a running API in under 2 minutes.
The wizard prompts for:
The wizard then automatically:
OFFERHUB_MASTER_KEYWALLET_ENCRYPTION_KEY (crypto mode).env with all values filled inprisma migrate deploynpm run bootstrap — creates the platform Stellar wallet and writes PLATFORM_USER_ID into .envThe API starts on http://localhost:4000.
Back up WALLET_ENCRYPTION_KEY immediately. If you lose it, all user wallets become unrecoverable. Store it in a secrets manager (Railway Variables, AWS Secrets Manager, or 1Password). Do not commit .env to git.
The wizard is idempotent for bootstrap — safe to re-run. It will ask before overwriting an existing .env. Run with testnet first; switch to mainnet only when ready for production.
Use this path when you need full manual control — custom Docker networks, CI/CD pipelines, or environments where running an interactive wizard isn't appropriate.
Start PostgreSQL and Redis using Docker Compose:
This starts:
54326379Copy the example environment file:
Edit .env with your values. The minimum required variables for local development:
Generate your WALLET_ENCRYPTION_KEY with: openssl rand -hex 32
Store this key securely — losing it makes wallet private keys unrecoverable.
Generate the Prisma client and apply migrations:
Create the internal platform user required for escrow operations:
The API starts on http://localhost:4000.
Test that everything is working:
You should see:
If you want to integrate with an existing OFFER-HUB Orchestrator instance (hosted by you or a partner), you only need the SDK:
Then configure it in your code:
See the SDK Guide for complete documentation.
Once the server is running, create an API key using your master key.
The @offerhub/cli is the fastest way to create an API key:
This runs an interactive wizard that prompts for scopes and key name. See the CLI Guide for all available commands.
Response:
Save the data.key value immediately — it's only shown once. Use this key for all subsequent API calls.
Make sure Docker is running and the containers are up:
If containers aren't running, start them:
If you see migration errors, try resetting the database:
This deletes all data. Only use in development.
If port 4000 is already in use, change the PORT in your .env file or stop the conflicting service.
create-offer-hub-orchestrator