Self-hosting Argyros
This guide walks through a production deployment of the Argyros community binary — from first credential to an instance running behind nginx with SSL and auto-restart on reboot.New to self-hosting? Start with the self-hosted overview to understand requirements and the quickest path to a running instance.
Get a FluxRPC key
Sign up at fluxrpc.com and copy your API key. You’ll use the same key for both
RPC_URL and YELLOWSTONE_TOKEN. The binary makes a live RPC call at startup to validate the key — it won’t start with an invalid or missing one.Get a community license key
Register at license.argyros.xyz. After signup your license key (
argycom_...) appears on the dashboard. The binary fetches your plan’s rate limits from the license server at startup and enforces them on every request.Configure
All configuration is via environment variables in
.env. The full reference:| Variable | Required | Default | Description |
|---|---|---|---|
COMMUNITY_MODE | yes | — | Must be true |
CHAIN | no | fogo | Chain selection (fogo only for now) |
RPC_URL | yes | — | FluxRPC Fogo endpoint with your API key |
YELLOWSTONE_URL | yes | — | Yellowstone gRPC endpoint |
YELLOWSTONE_TOKEN | yes | — | Your FluxRPC API key |
COMMUNITY_LICENSE_KEY | yes | — | License key from license.argyros.xyz |
COMMUNITY_LICENSE_API | yes | — | https://license.argyros.xyz |
LICENSE_CHECK_INTERVAL | no | 6h | How often to re-validate the license |
REFERRER_WALLET | no | — | Wallet address for referral fees (dApp builders only) |
ALLOWED_IPS | no | — | Comma-separated CIDRs to allowlist; empty = unrestricted |
HTTP_PORT | no | 8080 | HTTP listen port |
HTTP_HOST | no | 0.0.0.0 | HTTP listen host |
LUT_AUTHORITY_KEY_FOGO | no | — | Private key for Address Lookup Table provisioning |
Set up nginx and SSL
To expose the API publicly over HTTPS, proxy it behind nginx with a Let’s Encrypt certificate. A ready-to-use config is in the argyros-community repo.After this, the engine is reachable at
https://your-domain.com/api/v1/....Referral fees (dApp builders only)
If you are building a dApp or UI that routes swaps for end users, set Leave
REFERRER_WALLET to your wallet address. The engine appends your ATA to every swap transaction; the on-chain program automatically splits a portion of the protocol fee to you.REFERRER_WALLET unset if you are running the engine for your own bot or internal trades. There is no “referrer” in that case — setting it when you are both the router and the swapper has no effect.Solana support coming soon. The community binary currently runs on Fogo only (
CHAIN=fogo). See Supported Chains.