Skip to content
Merged
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
18 changes: 18 additions & 0 deletions src/authsome/auth/bundled_providers/anthropic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"schema_version": 1,
"name": "anthropic",
"display_name": "Anthropic",
"auth_type": "api_key",
"flow": "api_key",
"api_url": "api.anthropic.com",
"api_key": {
"header_name": "x-api-key",
"header_prefix": "",
"env_var": "ANTHROPIC_API_KEY",
"key_pattern": "^sk-ant-[A-Za-z0-9_-]{10,}$",
"key_pattern_hint": "Anthropic API keys start with 'sk-ant-' followed by letters, digits, '_' or '-'."
},
"export": {
"ANTHROPIC_API_KEY": "API_TOKEN"
}
}
18 changes: 18 additions & 0 deletions src/authsome/auth/bundled_providers/gemini.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"schema_version": 1,
"name": "gemini",
"display_name": "Gemini",
"auth_type": "api_key",
"flow": "api_key",
"api_url": "generativelanguage.googleapis.com",
"api_key": {
"header_name": "x-goog-api-key",
"header_prefix": "",
"env_var": "GEMINI_API_KEY",
"key_pattern": "^AIza[A-Za-z0-9_-]{20,}$",
"key_pattern_hint": "Gemini API keys typically start with 'AIza' followed by letters, digits, '_' or '-'."
},
"export": {
"GEMINI_API_KEY": "API_TOKEN"
}
}
1 change: 1 addition & 0 deletions src/authsome/auth/bundled_providers/openai.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"api_key": {
"header_name": "Authorization",
"header_prefix": "Bearer",
"env_var": "OPENAI_API_KEY",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is env var?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

env_var tells authsome scan which existing environment variable to look for when importing API keys from the shell or .env files, for example ANTHROPIC_API_KEY or GEMINI_API_KEY. It is not used for proxy injection or normal login flows.

Copy link
Copy Markdown
Collaborator

@beubax beubax May 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to consolidate all this logic, there's conflicting names here and there.

"key_pattern": "^sk-[A-Za-z0-9_-]{20,}$",
"key_pattern_hint": "OpenAI API keys start with 'sk-' followed by at least 20 letters, digits, '_' or '-'."
},
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading