Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@
# Path to your iFlow credential file (e.g., ~/.iflow/oauth_creds.json).
#IFLOW_OAUTH_1=""

# --- Freebuff ---
# Freebuff auth tokens (comma-separated for multi-token rotation).
# Obtain from ~/.config/manicode/credentials.json (authToken field) or https://freebuff.llm.pm
#FREEBUFF_API_KEY_1=""
#FREEBUFF_API_KEY_2=""
#FREEBUFF_API_BASE="https://codebuff.com"
#FREEBUFF_MODELS='["z-ai/glm-5.1","minimax/minimax-m2.7","google/gemini-2.5-flash-lite","google/gemini-3.1-flash-lite-preview"]'


# ------------------------------------------------------------------------------
# | [ADVANCED] Provider-Specific Settings |
Expand Down
7 changes: 7 additions & 0 deletions src/rotator_library/provider_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@
"synthetic": {
"category": "popular",
},
"freebuff": {
"category": "popular",
"note": "Free AI model hosting. Auth token from Freebuff CLI (~/.config/manicode/credentials.json).",
"extra_vars": [
("FREEBUFF_API_BASE", "API Base URL (optional)", "https://codebuff.com"),
],
},
# =========================================================================
# CLOUD PLATFORMS - Aggregators & cloud inference platforms
# =========================================================================
Expand Down
2 changes: 2 additions & 0 deletions src/rotator_library/provider_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
from .providers.qwen_auth_base import QwenAuthBase
from .providers.iflow_auth_base import IFlowAuthBase
from .providers.antigravity_auth_base import AntigravityAuthBase
from .providers.freebuff_auth_base import FreebuffAuthBase

PROVIDER_MAP = {
"gemini_cli": GeminiAuthBase,
"qwen_code": QwenAuthBase,
"iflow": IFlowAuthBase,
"antigravity": AntigravityAuthBase,
"freebuff": FreebuffAuthBase,
}

def get_provider_auth_class(provider_name: str):
Expand Down
Loading