BYOK Claude Code
Operators who already pay for Claude Code Max can route LLM-heavy steps through their own Anthropic key. We skip the platform charge on those steps and apply a 30% discount on the monthly invoice.
What counts
The discount evaluation looks at script.generate steps over the trailing
30 days. To qualify:
- At least 20
script.generatesteps in the window. - At least 60% of them used your key (
used_user_key = 1).
When both thresholds are met, subscriptions.byok_discount_percent flips
to 30 and the next renewal invoice is discounted.
How to opt in per step
Add useUserKey: true to the step in your workflow YAML. Only
BYOK-eligible actions honour the flag:
script.generate(Anthropic)voice.generate(ElevenLabs)thumb.generate(Replicate / Flux)
Other actions silently ignore the flag.
Security
Keys are stored encrypted with AES-256-GCM via
CHANNEL_TOKEN_SECRET. We never log the plaintext. The last 4 chars are
the only thing visible in the UI.
Removing a key
Open Settings → Personal API keys, hit the trash icon. Workflow steps
with useUserKey: true will fall back to the platform key on the next
run (and start being charged again).