Skip to main content

Authentication & Setup

Elastic Copilot offers flexible authentication options to suit different workflows and preferences. Choose between our managed subscription service or direct API provider integration.

Authentication Modes

Subscription Mode

Recommended for most users
  • No API keys required
  • Pay-per-use pricing
  • Managed infrastructure
  • Latest model access

Direct Provider Mode

For advanced users
  • Bring your own API keys
  • Direct provider billing
  • Full control over usage
  • Multiple provider support
The easiest way to get started with Elastic Copilot:
1

Open Elastic Copilot

Click the Elastic Copilot icon in VSCode’s sidebar
2

Sign In

Click “Sign In” and authenticate with your browser
  • New users: Create an account during sign-in
  • Existing users: Use your credentials
3

Choose Subscription

Select a subscription plan that fits your usage:
  • Free Tier: Limited monthly usage
  • Pro Plan: Extended usage limits
  • Team Plan: Multi-user collaboration
4

Start Coding

You’re ready! Start using AI commands and chat immediately

Subscription Benefits

No need to obtain, store, or manage API keys from multiple providers. Everything is handled securely by Elastic.
Get immediate access to the newest AI models from Anthropic, OpenAI, Google, and others as they become available.
Pay-per-use pricing with clear usage tracking. No surprise bills or complex token calculations.
Reliable, fast service with optimized routing and caching. No setup or maintenance required.

Direct Provider Mode Setup

For users who prefer direct control:
Direct provider mode requires managing your own API keys and understanding each provider’s pricing structure.

Supported Providers

  • Anthropic
  • OpenAI
  • Google
  • Other Providers
Claude Models (Recommended)
1

Get API Key

Visit Anthropic Console and create an API key
2

Configure in Elastic

  • Open Elastic Copilot settings
  • Select “Anthropic” as provider
  • Enter your API key
3

Choose Model

Select from Claude 3.5 Sonnet, Claude 3 Opus, or Claude 3 Haiku

Direct Provider Configuration

1

Open Settings

Click the gear icon in Elastic Copilot sidebar
2

Select Provider

Choose your preferred AI provider from the dropdown
3

Enter Credentials

Provide API keys and any required configuration
4

Test Connection

Send a test message to verify setup

Switching Between Modes

You can switch between subscription and direct provider modes at any time:

To Subscription Mode

  • Open Elastic Copilot settings
  • Click “Use Subscription”
  • Sign in with your account

To Direct Provider Mode

  • Open Elastic Copilot settings
  • Select “Configure Providers”
  • Choose and configure your provider

Security & Privacy

  • All communications encrypted in transit
  • No code stored on Elastic servers
  • SOC 2 compliant infrastructure
  • GDPR and CCPA compliant
  • API keys stored securely in VSCode’s secret storage
  • Direct communication with providers
  • You control data flow and retention
  • Follow each provider’s security guidelines
  • Code sent only when you explicitly request AI assistance
  • No background code scanning or telemetry
  • You can review all requests before sending
  • Full control over what data is shared

Troubleshooting Authentication

  • Ensure you have an active internet connection
  • Try opening the sign-in link in an incognito/private browser window
  • Check if your firewall is blocking the authentication flow
  • Clear browser cookies and try again
  • Verify the API key is correct and active
  • Check that you have sufficient credits/quota with the provider
  • Ensure the API key has the necessary permissions
  • Try generating a new API key if problems persist
  • Check your subscription status in the Elastic dashboard
  • Verify payment method is valid and current
  • Contact support if you have billing questions
  • Check usage limits and upgrade if needed

Next Steps

Once authenticated: