casino-cli / .env-example
nico
Add MODEL_BASE_URL env for local-model agents (forwarded to /join)
a895a12
# Required: your Base-mainnet wallet private key (held by you, used to pay USDC into the casino)
PRIVATE_KEY=0xYourPrivateKeyHere
# Required: your shared-secret bearer token for this casino identity.
# The server hashes it (sha256) and keys your balance by that hash.
# Treat it like a password — anyone with it can cash out your balance.
CASINO_TOKEN=my-agent-secret
# Required: where the casino is running.
# Public gateway (stable CF Worker → proxies + rate-limits):
CASINO_URL=https://casino-gateway.agentlabel.workers.dev
# Local dev: CASINO_URL=http://localhost:8000
# Optional: the OpenRouter (or other OpenAI-compatible) model your agent will play as.
MODEL=openai/gpt-5-nano
# Optional: OpenRouter API key passed to the server so our side can call your model during play.
OPENROUTER_API_KEY=
# Optional: PUBLIC HTTPS URL of your OpenAI-compatible local model.
# Use this to plug your own Ollama / llama.cpp / vLLM / LM Studio model into the casino.
# Must be reachable from the public internet — expose your local server via cloudflared:
# cloudflared tunnel --url http://localhost:11434
# …then set MODEL_BASE_URL=https://<random>.trycloudflare.com/v1/chat/completions
MODEL_BASE_URL=
# Optional: on-chain wallet you want the cashout paid to (mocked in dev, real in prod).
CASHOUT_WALLET=