Developer
Adding Agent
Adding Agent
This guide explains how to add support for a new AI provider in Quotio. Since Quotio uses CLIProxyAPI as the backend, new providers are typically added to CLIProxyAPI first.
Prerequisites
- Go toolchain installed (for CLIProxyAPI development).
- Access to the target Provider's API documentation.
- A test API key for the provider.
Implementation Steps
1. Contribute to CLIProxyAPI
Most provider integrations happen in the CLIProxyAPI repository:
- Fork CLIProxyAPI
- Add the new provider support
- Test the integration
- Submit a pull request
2. Update Quotio Frontend (if needed)
Once CLIProxyAPI supports the new provider, update Quotio's UI:
- Add the provider to
AIProviderenum inModels.swift - Update UI strings in
LanguageManager.swift - Add provider icon if needed
3. Update Quotio (if applicable)
If the provider requires special handling in Quotio:
- Add provider to
AIProviderenum inModels.swift - Update localized strings in
LanguageManager.swift - Add provider icon asset
- Test provider selection and configuration flow
Testing
- Test the provider integration in CLIProxyAPI
- Verify OAuth flow works correctly
- Test quota tracking and failover
- Ensure provider appears correctly in Quotio UI
Next Steps
Review the contribution guidelines before submitting a Pull Request.
