cmd/ez-agent-configurator/profiles.go
package main
type ProviderProfile struct {
ID string
Label string
ProviderType string
DefaultBaseURL string
DefaultMaxTokens int
AuthRequired bool
HasListing bool
DefaultAPIKeyEnv string
DefaultName string
DefaultCommand string
Hint string
}
var profiles = []ProviderProfile{
{
ID: "remote", Label: "Remote EzAgent provider host", ProviderType: "remote",
Hint: "Direct Unix socket or automatic noninteractive SSH forwarding. Credentials stay on the host.",
},
{
ID: "muse-code", Label: "Muse Code (subscription login)", ProviderType: "external",
DefaultName: "muse-code", DefaultCommand: "ezagent-muse-code-bridge",
Hint: "Uses the official Muse subscription login.",
},
{
ID: "claude-code", Label: "Claude Code (subscription login)", ProviderType: "external",
DefaultName: "claude-code", DefaultCommand: "ezagent-claude-code-bridge",
Hint: "Install Claude Code and sign in in the official app first. EzAgent then uses that login; normal use stays in EzAgent.",
},
{
ID: "external", Label: "Custom external command", ProviderType: "external",
Hint: "Run a configured external provider command. Model discovery is explicit.",
},
{
ID: "ollama",
Label: "Ollama (local)",
ProviderType: "ollama",
DefaultBaseURL: "http://localhost:11434/v1",
AuthRequired: false,
HasListing: true,
Hint: "Local Ollama instance. No API key needed.",
},
{
ID: "openai",
Label: "OpenAI Responses (API key)",
ProviderType: "openai",
DefaultBaseURL: "https://api.openai.com/v1",
AuthRequired: true,
DefaultAPIKeyEnv: "OPENAI_API_KEY",
Hint: "Requires an API key from platform.openai.com.",
},
{
ID: "openai-oauth",
Label: "OpenAI Responses (OAuth subscription)",
ProviderType: "openai_oauth",
AuthRequired: true,
HasListing: true,
Hint: "Uses ChatGPT subscription OAuth and canonical OpenAI endpoints.",
},
{
ID: "anthropic",
Label: "Anthropic",
ProviderType: "anthropic",
DefaultBaseURL: "https://api.anthropic.com/v1",
DefaultMaxTokens: 4096,
AuthRequired: true,
DefaultAPIKeyEnv: "ANTHROPIC_API_KEY",
Hint: "Requires an API key from console.anthropic.com.",
},
{
ID: "openai-compatible",
Label: "OpenAI-compatible",
ProviderType: "openai_compatible",
DefaultBaseURL: "",
AuthRequired: false,
Hint: "Remote Ollama or any OpenAI-compatible API. Provide base URL.",
},
{
ID: "wafer",
Label: "Wafer",
ProviderType: "wafer",
DefaultBaseURL: "https://pass.wafer.ai/v1",
AuthRequired: true,
HasListing: true,
DefaultAPIKeyEnv: "WAFER_API_KEY",
Hint: "Wafer Serverless. Requires API key from wafer.ai.",
},
}
func GetProfile(id string) *ProviderProfile {
for i := range profiles {
if profiles[i].ID == id {
return &profiles[i]
}
}
return nil
}