Union of all ACP authentication method types.
Advertised in the InitializeResponse so clients know how to help
users authenticate with the agent.
ACPAuthMethod: ACPAuthMethodAgent | ACPAuthMethodEnvVar | ACPAuthMethodTerminalconst server = new DeepAgentsServer({
agents: { name: "my-agent" },
authMethods: [
{
id: "anthropic",
name: "Anthropic API Key",
type: "env_var",
vars: [{ name: "ANTHROPIC_API_KEY" }],
link: "https://console.anthropic.com/settings/keys",
},
],
});