Skip to content

Implement per-provider proxy configuration#189

Open
toanalien wants to merge 3 commits intodecolua:masterfrom
toanalien:feat/per-provider-proxy
Open

Implement per-provider proxy configuration#189
toanalien wants to merge 3 commits intodecolua:masterfrom
toanalien:feat/per-provider-proxy

Conversation

@toanalien
Copy link
Contributor

Per-Provider Proxy Configuration

Adds per-provider proxy support with HTTP/HTTPS/SOCKS protocols and authentication.

What's New:

  • Each provider connection can have its own proxy config
  • Dashboard UI for proxy settings with test button
  • Proxy API endpoints: CRUD + test
  • LRU cache prevents memory leaks

API:

  • POST /api/providers/[id]/proxy - {url, bypass}
  • POST /api/providers/[id]/proxy/test - validate connectivity

Backward Compatible: Global env vars (HTTP_PROXY, HTTPS_PROXY) still work.

Testing: Unit tests + proxy test endpoint included.

CleanShot 2026-02-24 at 15 04 08@2x

- Add proxy configuration to provider credentials with url and bypass patterns
- Integrate proxy agent factory into base executor for all provider types
- Create proxy API endpoints for provider-specific proxy configuration
- Add proxy test endpoint for validation and connectivity checks
- Update local database to support proxy configuration storage
- Support HTTP and SOCKS5 proxy formats with authentication

API Changes:
- POST /api/providers/[id]/proxy - Set/update proxy configuration
- POST /api/providers/[id]/proxy/test - Test proxy connectivity
- GET /api/providers/[id] - Now includes proxy configuration in response
- PATCH /api/providers/[id] - Can update proxy settings via credentials proxy field
- Add proxy configuration UI to provider connection edit modal
- Add proxy test button with connectivity validation
- Add comprehensive unit tests for proxy agent factory
- Update architecture documentation with proxy flow diagram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant