Added Direct Access endpoint for Third Party Agents
What does this MR do and why?
Adds a new endpoint to support agents like Claude Code. This endpoint allows us to receive a token from GitLab that will allow Claude Code & other third party products to call the anthropic proxy in AI Gateway.
References
Related Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/563278
Screenshots or screen recordings
N/A
How to set up and validate locally
- Set the feature flag
agent_platform_claude_code
- Run the following curl statement
curl -v -X POST \
-H "Authorization: Bearer $GITLAB_TOKEN_LOCAL" \
https://gdk.test:3000/api/v4/ai/third_party_agents/direct_access
You should get a token and the headers back
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.