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 on-prem Ask Akto assistant with GitHub Copilot instead of Anthropic Claude.
Before You Begin
Make sure you have:
A running self-hosted Ask Akto deployment if you don't have one yet, follow the Self-Hosted Deployment guide first
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-agentic-testing-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 recognisable 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.
Update Your Environment File
Open your docker-agentic-testing-dashboard.env file and update it with the values below. These override the defaults you set during the base deployment:
# 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. (Used for Claude models when GitHub Copilot is not configured)
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.
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