Commit History
-
feat(codex): add Redis-backed prompt cache fallback
shinmentakezo07 +1: Claude Opus 4.6Add optional Redis-backed storage for Codex prompt cache IDs so cache keys stay stable across replicas while preserving the existing in-memory path when Redis is unset or unavailable. Wire codex prompt-cache config through YAML and environment overrides, apply the shared cache helper in both HTTP and WebSocket executors, and add tests for config defaults/sanitization, Redis TTL behavior, retention semantics, and explicit prompt_cache_key precedence. - honors explicit prompt_cache_key before retention-based disable logic - preserves short configured/request TTL values (for example 7s) instead of forcing a 1m minimum - uses GET/SETNX/GET winner flow for distributed cache ID creation with local fallback on Redis errors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>0e6d51f
-
ein
shinmentakezo07370393f
-
feat: add cache-user-id toggle for Claude cloaking
matchchDefault to generating a fresh random user_id per request instead of reusing cached IDs. Add cache-user-id config option to opt in to the previous caching behavior. - Add CacheUserID field to CloakConfig - Extract user_id cache logic to dedicated file - Generate fresh user_id by default, cache only when enabled - Add tests for both paths94bf56c
-
feat: add passthrough headers configuration
Unverified signature- Introduced `passthrough-headers` option in configuration to control forwarding of upstream response headers. - Updated handlers to respect the passthrough headers setting. - Added tests to verify behavior when passthrough is enabled or disabled.11fa176
-
fix: update Claude masquerading headers and make them configurable
Kirill TuranskiyUpdate hardcoded X-Stainless-* and User-Agent defaults to match Claude Code 2.1.44 / @anthropic-ai/sdk 0.74.0 (verified via diagnostic proxy capture 2026-02-17). Changes: - X-Stainless-Os/Arch: dynamic via runtime.GOOS/GOARCH - X-Stainless-Package-Version: 0.55.1 → 0.74.0 - X-Stainless-Timeout: 60 → 600 - User-Agent: claude-cli/1.0.83 (external, cli) → claude-cli/2.1.44 (external, sdk-cli) Add claude-header-defaults config section so values can be updated without recompilation when Claude Code releases new versions.dc57d0c
-
docs(config): reorder antigravity model alias example
hkfires2c90e1f -
docs(config): simplify oauth model alias example
hkfiresd917266
-
fix(kimi): add OAuth model-alias channel support and cover OAuth excluded-models with tests
LTbinglingfenga82adf2
-
feat(pprof): add support for configurable pprof HTTP debug server
Unverified signature- Introduced a new `pprof` server to enable/debug HTTP profiling. - Added configuration options for enabling/disabling and specifying the server address. - Integrated pprof server lifecycle management with `Service`. #1287b5f9810
-
refactor(codex): remove codex instructions injection support
hkfiresddd1d2e
-
Merge pull request #1368 from sususu98/feat/configurable-error-logs-max-files
Unverified signaturefeat(logging): make error-logs-max-files configurable88da573 -
feat(config): add payload filter rules to remove JSON paths
Unverified signatureIntroduce `Filter` rules in the payload configuration to remove specified JSON paths from the payload. Update related helper functions and add examples to `config.example.yaml`.58d1bb7 -
feat(logging): make error-logs-max-files configurable
sususu98- Add ErrorLogsMaxFiles config field with default value 10 - Support hot-reload via config file changes - Add Management API: GET/PUT/PATCH /v0/management/error-logs-max-files - Maintain SDK backward compatibility with NewFileRequestLogger (3 params) - Add NewFileRequestLoggerWithOptions for custom error log retention When request logging is disabled, forced error logs are retained up to the configured limit. Set to 0 to disable cleanup.51a2276
-
Merge pull request #868
Unverified signaturedd8fe4a
-
refactor(codex): update terminology to "official instructions" for clarity
Unverified signature2e2438c -
feat(codex): add config toggle for codex instructions injection
hkfires15cbcc9 -
feat(config): add support for raw JSON payload rules
Unverified signature- Introduced `default-raw` and `override-raw` rules to handle raw JSON values. - Enhanced `PayloadConfig` to validate and sanitize raw JSON payload rules. - Updated executor logic to apply `default-raw` and `override-raw` rules. - Extended example YAML to include usage of raw JSON rules.f8a52c4
-
refactor(config): rename oauth-model-mappings to oauth-model-alias
hkfires6c2a12f
-
refactor(antigravity): remove hardcoded model aliases
hkfires0661552
-
refactor(config): replace `nonstream-keepalive` with `nonstream-keepalive-interval`
Unverified signature- Updated `SDKConfig` to use `nonstream-keepalive-interval` (seconds) instead of the boolean `nonstream-keepalive`. - Refactored handlers and logic to incorporate the new interval-based configuration. - Updated config diff, tests, and example YAML to reflect the changes.b052301 -
feat(api): add non-streaming keep-alive support for idle timeout prevention
Unverified signature- Introduced `StartNonStreamingKeepAlive` to emit periodic blank lines during non-streaming responses. - Added `nonstream-keepalive` configuration option in `SDKConfig`. - Updated handlers to utilize `StartNonStreamingKeepAlive` and ensure proper cleanup. - Extended config diff and tests to include `nonstream-keepalive` changes.d4889a8 -
Fixed: #936
Unverified signaturefeat(cliproxy): support multiple aliases for OAuth model mappings - Updated mapping logic to allow multiple aliases per upstream model name. - Adjusted `SanitizeOAuthModelMappings` to ensure aliases remain unique within channels. - Added test cases to validate multi-alias scenarios. - Updated example config to clarify multi-alias support.d3bcc0c
-
feat(claude): add native request cloaking for non-claude-code clients
maoring24 +1: Claude Opus 4.5integrate claude-cloak functionality to disguise api requests: - add CloakConfig with mode (auto/always/never) and strict-mode options - generate fake user_id in claude code format (user_[hex]_account__session_[uuid]) - inject claude code system prompt (configurable strict mode) - obfuscate sensitive words with zero-width characters - auto-detect claude code clients via user-agent 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>89d5f4d
-
feat(config): add support for `Fork` in OAuth model mappings with alias handling
Unverified signatureImplemented `Fork` flag in `ModelNameMapping` to allow aliases as additional models while preserving the original model ID. Updated the `applyOAuthModelMappings` logic, added tests for `Fork` behavior, and updated documentation and examples accordingly.53e39cf
-
feat(gemini): add per-key model alias support for Gemini provider
hkfirese4d3e38 -
refactor(config): rename model mapping fields from from/to to name/alias
hkfiresd927d87 -
refactor(config): rename model-name-mappings to oauth-model-mappings
hkfires32fd7e3 -
feat(cliproxy): introduce global model name mappings for improved aliasing and routing
Unverified signaturee5e9477
-
feat(amp): add per-client upstream API key mapping support
hkfires261120f
-
feat(cliproxy): implement model aliasing and hashing for Codex configurations, enhance request routing logic, and normalize Codex model entries
Unverified signaturefe1d7f4
-
feat(config): add `commercial-mode` to optimize HTTP middleware for lower memory usage
Unverified signature65b88c2
-
Merge pull request #661 from jroth1111/fix/streaming-bootstrap-forwarder
Unverified signaturefix: improve streaming bootstrap and forwarding81bdf9d
-
fix: keep streaming defaults legacy-safe
485ce54 -
docs: add routing strategy example
60abe97
-
feat(config): add log file size limit configuration #535
Unverified signatureThis commit introduces a new configuration option `logs-max-total-size-mb` that allows users to set a maximum total size (in MB) for log files in the logs directory. When this limit is exceeded, the oldest log files will be automatically deleted to stay within the specified size. Setting this value to 0 (the default) disables this feature. This change enhances log management by preventing excessive disk space usage.ec7a2e0
-
feat(config): add support for model prefixes and prefix normalization
Unverified signatureRefactor model management to include an optional `prefix` field for model credentials, enabling better namespace handling. Update affected configuration files, APIs, and handlers to support prefix normalization and routing. Remove unused OpenAI compatibility provider logic to simplify processing.e3dcb10 -
feat(remote-management): add support for custom GitHub repository for panel updates
Unverified signatureIntroduce `panel-github-repository` in the configuration to allow specifying a custom repository for management panel assets. Update dependency versions and enhance asset URL resolution logic to support overrides.b4d458c
-
feat(amp): require API key authentication for management routes
hkfiresAll Amp management endpoints (e.g., /api/user, /threads) are now protected by the standard API key authentication middleware. This ensures that all management operations require a valid API key, significantly improving security. As a result of this change: - The `restrict-management-to-localhost` setting now defaults to `false`. API key authentication provides a stronger and more flexible security control than IP-based restrictions, improving usability in containerized environments. - The reverse proxy logic now strips the client's `Authorization` header after authenticating the initial request. It then injects the configured `upstream-api-key` for the request to the upstream Amp service. BREAKING CHANGE: Amp management endpoints now require a valid API key for authentication. Requests without a valid API key in the `Authorization` header will be rejected with a 401 Unauthorized error.ba26106
-
refactor(thinking): use bracket tags for thinking meta
hkfiresAlign thinking suffix handling on a single bracket-style marker. NormalizeThinkingModel strips a terminal `[value]` segment from model identifiers and turns it into either a thinking budget (for numeric values) or a reasoning effort hint (for strings). Emission of `ThinkingIncludeThoughtsMetadataKey` is removed. Executor helpers and the example config are updated so their comments reference the new `[value]` suffix format instead of the legacy dash variants. BREAKING CHANGE: dash-based thinking suffixes (`-thinking`, `-thinking-N`, `-reasoning`, `-nothinking`) are no longer parsed for thinking metadata; only `[value]` annotations are recognized.5e0c791
-
feat(config): add configurable host binding for server (#454)
vuonglv(Andy)Unverified signature* feat(config): add configurable host binding for serverdf02f65 -
refactor(config): rename prioritize-model-mappings to force-model-mappings
hkfires13e820c
-
docs(config): comment out example API key configurations
hkfiresff035cc -
refactor(config): restructure and uncomment example configuration
hkfiresf5e431c
-
**refactor(cliproxy, config): remove vertex-compat flow, streamline Vertex API key handling**
Unverified signature- Removed `vertex-compat` executor and related configuration. - Consolidated Vertex compatibility checks into `vertex` handling with `apikey`-based model resolution. - Streamlined model generation logic for Vertex API key entries.c6e115d
-
Merge branch 'router-for-me:main' into main
Unverified signature7c500df
-
docs(config): expand model exclusion examples
hkfires787d993
-
refactor(config): rename model blacklist fields to excluded models
hkfires44ee641 -
feat(amp): add model mapping support for routing unavailable models to alternatives
Trung Nguyen- Add AmpModelMapping config to route models like 'claude-opus-4.5' to 'claude-sonnet-4' - Add ModelMapper interface and DefaultModelMapper implementation with hot-reload support - Enhance FallbackHandler to apply model mappings before falling back to ampcode.com - Add structured logging for routing decisions (local provider, mapping, amp credits) - Update config.example.yaml with amp-model-mappings documentationd37cb2e
-
feat(auth): add oauth provider model blacklist
hkfires99640a9
-
feat(config): add per-key model blacklist for providers
hkfires87af05e