AISBFAI Service Broker Framework — AI Should Be Free
Step-by-step guide for coupling AISBF with CoderAI broker workers and RunPod GPU endpoints using providers, rotations, autoselect, and cluster-safe route names.
Apps never talk directly to CoderAI workers or RunPod pods. They talk to AISBF. AISBF owns the public API, authentication, stable route names, and policy. CoderAI and RunPod become replaceable backend capacity.
curl -fsS http://coderai-broker.internal:8080/v1/models -H "Authorization: Bearer $CODERAI_BROKER_TOKEN"Provider ID: runpod-gpu-a
Type: openai
Endpoint: https://YOUR-POD-ID-8000.proxy.runpod.net/v1
API key: $RUNPOD_API_KEY
Models: deepseek-coder-v2, mixtral-8x22b-instruct{"rotations":{"coding-production":{"model_name":"coding-production","providers":[{"provider_id":"coderai-local","model":"qwen2.5-coder:32b","weight":6,"error_cooldown":60},{"provider_id":"runpod-gpu-a","model":"deepseek-coder-v2","weight":3,"error_cooldown":120},{"provider_id":"openai-prod","model":"gpt-4.1-mini","weight":1,"error_cooldown":300}],"privacy":true,"capabilities":["chat","coding","tool_use"]}}}{"engineering":{"model_name":"engineering","selection_model":"general","fallback":"user-rotation/coding-production","classify_privacy":true,"classify_semantic":true,"available_models":[{"model_id":"user-rotation/coding-production","description":"Private code, logs, secrets, customer data.","privacy":true},{"model_id":"user-provider/runpod-gpu-a/deepseek-coder-v2","description":"Long refactors and GPU-heavy coding when data is not secret."},{"model_id":"user-provider/openai-prod/gpt-4.1-mini","description":"Fast hosted fallback for non-private tasks."}]}}
AISBF is open source and also available as a hosted service. During the current testing period, hosted Pro is temporarily available as unlimited access for €2/month.