TokenMarket
Reallocate unused API capacity across teams.
TokenMarket allows teams to request additional token budget from underutilized pools. Auto-rebalance with priority queuing.
Quickstart
export OPENAI_API_KEY=sk-...
npx @stockyard/tokenmarket
# Your app: http://localhost:6030/v1/chat/completions
# Dashboard: http://localhost:6030/ui
What You Get
- Budget pools per team
- Capacity request workflow
- Auto-rebalance unused budget
- Priority queuing
- Usage forecasting
- Dashboard with pool status
Config
# tokenmarket.yaml
port: 6030
providers:
openai:
api_key: ${OPENAI_API_KEY}
tokenmarket:
pools:
engineering: { budget: 100000, priority: high }
marketing: { budget: 50000, priority: medium }
support: { budget: 25000, priority: low }
rebalance_interval: 1h
Docker
docker run -p 6030:6030 -e OPENAI_API_KEY=sk-... stockyard/tokenmarket
Part of Stockyard
TokenMarket is part of Stockyard — an open-source LLM proxy and control plane. MIT licensed.