Versions in this module Expand all Collapse all v6 v6.9.3 Mar 25, 2026 Changes in this version + func CompleteOAuthSession(state string) + func CompleteOAuthSessionsByProvider(provider string) int + func GetOAuthSession(state string) (provider string, status string, ok bool) + func IsOAuthSessionPending(state, provider string) bool + func NormalizeOAuthProvider(provider string) (string, error) + func PopulateAuthContext(ctx context.Context, c *gin.Context) context.Context + func RegisterOAuthSession(state, provider string) + func SetOAuthSessionError(state, message string) + func ValidateOAuthState(state string) error + func WriteConfig(path string, data []byte) error + func WriteOAuthCallbackFile(authDir, provider, state, code, errorMessage string) (string, error) + func WriteOAuthCallbackFileForPendingSession(authDir, provider, state, code, errorMessage string) (string, error) + type Handler struct + func NewHandler(cfg *config.Config, configFilePath string, manager *coreauth.Manager) *Handler + func NewHandlerWithoutConfigFilePath(cfg *config.Config, manager *coreauth.Manager) *Handler + func (h *Handler) APICall(c *gin.Context) + func (h *Handler) DeleteAPIKeys(c *gin.Context) + func (h *Handler) DeleteAmpModelMappings(c *gin.Context) + func (h *Handler) DeleteAmpUpstreamAPIKey(c *gin.Context) + func (h *Handler) DeleteAmpUpstreamAPIKeys(c *gin.Context) + func (h *Handler) DeleteAmpUpstreamURL(c *gin.Context) + func (h *Handler) DeleteAuthFile(c *gin.Context) + func (h *Handler) DeleteClaudeKey(c *gin.Context) + func (h *Handler) DeleteCodexKey(c *gin.Context) + func (h *Handler) DeleteGeminiKey(c *gin.Context) + func (h *Handler) DeleteLogs(c *gin.Context) + func (h *Handler) DeleteOAuthExcludedModels(c *gin.Context) + func (h *Handler) DeleteOAuthModelAlias(c *gin.Context) + func (h *Handler) DeleteOpenAICompat(c *gin.Context) + func (h *Handler) DeleteProxyURL(c *gin.Context) + func (h *Handler) DeleteVertexCompatKey(c *gin.Context) + func (h *Handler) DownloadAuthFile(c *gin.Context) + func (h *Handler) DownloadRequestErrorLog(c *gin.Context) + func (h *Handler) ExportUsageStatistics(c *gin.Context) + func (h *Handler) GetAPIKeys(c *gin.Context) + func (h *Handler) GetAmpCode(c *gin.Context) + func (h *Handler) GetAmpForceModelMappings(c *gin.Context) + func (h *Handler) GetAmpModelMappings(c *gin.Context) + func (h *Handler) GetAmpRestrictManagementToLocalhost(c *gin.Context) + func (h *Handler) GetAmpUpstreamAPIKey(c *gin.Context) + func (h *Handler) GetAmpUpstreamAPIKeys(c *gin.Context) + func (h *Handler) GetAmpUpstreamURL(c *gin.Context) + func (h *Handler) GetAuthFileModels(c *gin.Context) + func (h *Handler) GetAuthStatus(c *gin.Context) + func (h *Handler) GetClaudeKeys(c *gin.Context) + func (h *Handler) GetCodexKeys(c *gin.Context) + func (h *Handler) GetConfig(c *gin.Context) + func (h *Handler) GetConfigYAML(c *gin.Context) + func (h *Handler) GetDebug(c *gin.Context) + func (h *Handler) GetErrorLogsMaxFiles(c *gin.Context) + func (h *Handler) GetForceModelPrefix(c *gin.Context) + func (h *Handler) GetGeminiKeys(c *gin.Context) + func (h *Handler) GetLatestVersion(c *gin.Context) + func (h *Handler) GetLoggingToFile(c *gin.Context) + func (h *Handler) GetLogs(c *gin.Context) + func (h *Handler) GetLogsMaxTotalSizeMB(c *gin.Context) + func (h *Handler) GetMaxRetryInterval(c *gin.Context) + func (h *Handler) GetOAuthExcludedModels(c *gin.Context) + func (h *Handler) GetOAuthModelAlias(c *gin.Context) + func (h *Handler) GetOpenAICompat(c *gin.Context) + func (h *Handler) GetProxyURL(c *gin.Context) + func (h *Handler) GetRequestErrorLogs(c *gin.Context) + func (h *Handler) GetRequestLog(c *gin.Context) + func (h *Handler) GetRequestLogByID(c *gin.Context) + func (h *Handler) GetRequestRetry(c *gin.Context) + func (h *Handler) GetRoutingStrategy(c *gin.Context) + func (h *Handler) GetStaticModelDefinitions(c *gin.Context) + func (h *Handler) GetSwitchPreviewModel(c *gin.Context) + func (h *Handler) GetSwitchProject(c *gin.Context) + func (h *Handler) GetUsageStatistics(c *gin.Context) + func (h *Handler) GetUsageStatisticsEnabled(c *gin.Context) + func (h *Handler) GetVertexCompatKeys(c *gin.Context) + func (h *Handler) GetWebsocketAuth(c *gin.Context) + func (h *Handler) ImportUsageStatistics(c *gin.Context) + func (h *Handler) ImportVertexCredential(c *gin.Context) + func (h *Handler) ListAuthFiles(c *gin.Context) + func (h *Handler) Middleware() gin.HandlerFunc + func (h *Handler) PatchAPIKeys(c *gin.Context) + func (h *Handler) PatchAmpModelMappings(c *gin.Context) + func (h *Handler) PatchAmpUpstreamAPIKeys(c *gin.Context) + func (h *Handler) PatchAuthFileFields(c *gin.Context) + func (h *Handler) PatchAuthFileStatus(c *gin.Context) + func (h *Handler) PatchClaudeKey(c *gin.Context) + func (h *Handler) PatchCodexKey(c *gin.Context) + func (h *Handler) PatchGeminiKey(c *gin.Context) + func (h *Handler) PatchOAuthExcludedModels(c *gin.Context) + func (h *Handler) PatchOAuthModelAlias(c *gin.Context) + func (h *Handler) PatchOpenAICompat(c *gin.Context) + func (h *Handler) PatchVertexCompatKey(c *gin.Context) + func (h *Handler) PostOAuthCallback(c *gin.Context) + func (h *Handler) PutAPIKeys(c *gin.Context) + func (h *Handler) PutAmpForceModelMappings(c *gin.Context) + func (h *Handler) PutAmpModelMappings(c *gin.Context) + func (h *Handler) PutAmpRestrictManagementToLocalhost(c *gin.Context) + func (h *Handler) PutAmpUpstreamAPIKey(c *gin.Context) + func (h *Handler) PutAmpUpstreamAPIKeys(c *gin.Context) + func (h *Handler) PutAmpUpstreamURL(c *gin.Context) + func (h *Handler) PutClaudeKeys(c *gin.Context) + func (h *Handler) PutCodexKeys(c *gin.Context) + func (h *Handler) PutConfigYAML(c *gin.Context) + func (h *Handler) PutDebug(c *gin.Context) + func (h *Handler) PutErrorLogsMaxFiles(c *gin.Context) + func (h *Handler) PutForceModelPrefix(c *gin.Context) + func (h *Handler) PutGeminiKeys(c *gin.Context) + func (h *Handler) PutLoggingToFile(c *gin.Context) + func (h *Handler) PutLogsMaxTotalSizeMB(c *gin.Context) + func (h *Handler) PutMaxRetryInterval(c *gin.Context) + func (h *Handler) PutOAuthExcludedModels(c *gin.Context) + func (h *Handler) PutOAuthModelAlias(c *gin.Context) + func (h *Handler) PutOpenAICompat(c *gin.Context) + func (h *Handler) PutProxyURL(c *gin.Context) + func (h *Handler) PutRequestLog(c *gin.Context) + func (h *Handler) PutRequestRetry(c *gin.Context) + func (h *Handler) PutRoutingStrategy(c *gin.Context) + func (h *Handler) PutSwitchPreviewModel(c *gin.Context) + func (h *Handler) PutSwitchProject(c *gin.Context) + func (h *Handler) PutUsageStatisticsEnabled(c *gin.Context) + func (h *Handler) PutVertexCompatKeys(c *gin.Context) + func (h *Handler) PutWebsocketAuth(c *gin.Context) + func (h *Handler) RequestAnthropicToken(c *gin.Context) + func (h *Handler) RequestAntigravityToken(c *gin.Context) + func (h *Handler) RequestCodexToken(c *gin.Context) + func (h *Handler) RequestGeminiCLIToken(c *gin.Context) + func (h *Handler) RequestIFlowCookieToken(c *gin.Context) + func (h *Handler) RequestIFlowToken(c *gin.Context) + func (h *Handler) RequestKimiToken(c *gin.Context) + func (h *Handler) RequestQwenToken(c *gin.Context) + func (h *Handler) SetAuthManager(manager *coreauth.Manager) + func (h *Handler) SetConfig(cfg *config.Config) + func (h *Handler) SetLocalPassword(password string) + func (h *Handler) SetLogDirectory(dir string) + func (h *Handler) SetPostAuthHook(hook coreauth.PostAuthHook) + func (h *Handler) SetUsageStatistics(stats *usage.RequestStatistics) + func (h *Handler) UploadAuthFile(c *gin.Context) v6.9.2-rc1 Mar 25, 2026