Run with GitHub Copilot
Overview
You can run Ask Akto with GitHub Copilot as the underlying AI model using the Bring Your Own Model configuration. This lets you power your self-hosted Ask Akto assistant with GitHub Copilot instead of Anthropic Claude.
Before You Begin
Make sure you have:
A running self-hosted Akto deployment
Your GitHub Copilot access with a valid API key
Admin access to your Akto dashboard
The following variable added to your Akto API Security Dashboard env file, and the service restarted to apply it:
AKTO_MCP_SERVER_URL=<your-mcp-server-url>
Configuration
Generate Your GitHub Copilot API Key
You need a GitHub fine-grained personal access token to authenticate with GitHub Copilot. Here's how to generate one:
Go to github.com and click your profile picture → Settings
Scroll to the bottom of the left sidebar and click Developer settings
Go to Personal access tokens → Fine-grained tokens
Click Generate new token
Give your token a recognizable name (e.g.,
akto-copilot) and set an expiration that suits your policyUnder Permissions → Account permissions, add the following three permissions, all set to Read-only:
Copilot Chat
Copilot Editor Context
Copilot Requests
Click Generate token at the bottom
Copy your token immediately — GitHub will only show it once
You'll use this token as your API key in the next step.
Configure GitHub Copilot as Your Model
Add your token to Akto so it can call GitHub Copilot:
In your Akto dashboard, go to Settings → Integrations → Agents
Click Add Model
Select GitHub Copilot as the provider
Enter a Name, paste your token into the API Key field, and pick a supported Model
Click Save
For more details on each field and the full list of supported models, see the Agent Configuration guide.
Update Your Environment File
Open your docker-agentic-testing-dashboard.env file and update it with the following values:
# Leave this empty — you're using GitHub Copilot as your model provider
ANTHROPIC_API_KEY=""
NODE_ENV=production
PORT=5500
AGENTIC_MODE=true
MCP_SERVER_URL=<YOUR_AKTO_MCP_SERVER_URL>
# Required when you're using GitHub Copilot
DASHBOARD_URL=<YOUR_AKTO_DASHBOARD_URL>
AKTO_API_KEY=<YOUR_AKTO_API_KEY>What you need to set (GitHub Copilot specific)
ANTHROPIC_API_KEY
Leave it empty — you're using GitHub Copilot instead.
AGENTIC_MODE
Must be set to true.
MCP_SERVER_URL
Your Akto MCP server URL.
DASHBOARD_URL
Your Akto Agentic AI Security Dashboard's base URL.
AKTO_API_KEY
Your Akto API key for authenticating with the Akto dashboard. Generate it from Settings → Integrations → Automation → Akto API.
Restart Your Services
Restart your services to apply the updated environment file:
docker compose down && docker compose up -dTo confirm everything is running, follow the Verify Connectivity steps from the base deployment guide.
Support
If you need help with the deployment:
Discord Community: Join our community at discord.gg/Wpc6xVME4s
Email Support: Contact us at support@akto.io
Our team is available 24/7 to assist you with setup, troubleshooting, and best practices.
Last updated