picoclaw/pkg/providers
BallerIsLeet 23abbb67ea
feat(auth): add Anthropic OAuth setup-token login (#926)
* feat(auth): add Anthropic OAuth setup-token login flow

Add support for Anthropic's OAuth-based setup tokens (sk-ant-oat01-*)
as an alternative to API keys. This includes:

- New `--setup-token` flag on `auth login` command
- Interactive login menu for Anthropic (setup token vs API key)
- Setup token validation and credential storage with oauth auth method
- Usage endpoint integration to show 5h/7d utilization in `auth status`
- Streaming support for OAuth tokens (required by Anthropic API)
- Model ID normalization (dots to hyphens) for API compatibility
- Remove .env.example (secrets should not be templated)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(auth):  update related functionality

* refactor(auth): organize constants and improve header casing in requests fo CI

* fix(auth): fix golint again

* fix(auth): handle nil arguments in tool calls for buildParams function

---------

Co-authored-by: Baller <sharonms3377@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 19:58:23 +08:00
..
anthropic feat(auth): add Anthropic OAuth setup-token login (#926) 2026-03-06 19:58:23 +08:00
openai_compat prevent audio as image url 2026-03-04 19:34:08 +01:00
protocoltypes feat(providers): add Media field to Message struct for vision support 2026-03-03 16:27:29 +08:00
antigravity_provider.go fix: handle ignored io.ReadAll errors across codebase 2026-03-05 20:56:38 +09:00
antigravity_provider_test.go fix(antigravity): normalize tool calls to avoid empty function names 2026-02-17 20:05:35 +05:30
claude_cli_provider.go remove wrapper methods 2026-03-01 18:24:11 +11:00
claude_cli_provider_integration_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
claude_cli_provider_test.go remove wrapper methods 2026-03-01 18:24:11 +11:00
claude_provider.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
claude_provider_test.go feat(fmt): Fix formatting 2026-02-20 20:03:11 +02:00
codex_cli_credentials.go feat(linter): Fix govet linter 2026-02-20 22:35:16 +02:00
codex_cli_credentials_test.go enable dogsled 2026-02-25 21:14:19 +11:00
codex_cli_provider.go remove wrapper methods 2026-03-01 18:24:11 +11:00
codex_cli_provider_integration_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
codex_cli_provider_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
codex_provider.go refactor(modernize): apply safe modernize fixes 2026-02-27 16:35:07 +08:00
codex_provider_test.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
cooldown.go style: fix gofmt formatting in cooldown files 2026-02-13 12:26:44 -03:00
cooldown_test.go refactor(modernize): apply safe modernize fixes 2026-02-27 16:35:07 +08:00
error_classifier.go fix(pkg):do regex precompile insteadd on the fly (#911) 2026-03-01 23:06:31 +11:00
error_classifier_test.go fix(pkg):do regex precompile insteadd on the fly (#911) 2026-03-01 23:06:31 +11:00
factory.go feat: add Avian as a named LLM provider 2026-03-03 19:36:46 +00:00
factory_provider.go feat: add Avian as a named LLM provider 2026-03-03 19:36:46 +00:00
factory_provider_test.go feat: add LiteLLM provider alias support (#930) 2026-03-03 08:23:55 +11:00
factory_test.go feat: add LiteLLM provider alias support (#930) 2026-03-03 08:23:55 +11:00
fallback.go fix(providers): support lookup-based fallback candidate resolution 2026-02-26 23:50:33 +08:00
fallback_test.go fix(providers): support lookup-based fallback candidate resolution 2026-02-26 23:50:33 +08:00
github_copilot_provider.go fix: improve error handling in GitHub Copilot provider (#919) 2026-03-01 22:58:41 +11:00
http_provider.go fix(providers): support per-model request_timeout in model_list (#733) 2026-02-26 19:08:19 +11:00
legacy_provider.go fix:Openrouter in providers and modellist 2026-02-25 14:44:49 +08:00
model_ref.go feat: add model fallback chain with error classification 2026-02-13 12:12:12 -03:00
model_ref_test.go feat: add model fallback chain with error classification 2026-02-13 12:12:12 -03:00
tool_call_extract.go feat(fmt): Run formatters 2026-02-18 21:48:23 +02:00
toolcall_utils.go enable dupl check 2026-03-01 18:17:32 +11:00
types.go feat: add extended thinking support for Anthropic models (#1076) 2026-03-05 09:51:18 +08:00