Connect Codex to GitLab
Connect Codex to GitLab in 3 steps: 1. Sign in to ApexGenius and connect GitLab. 2. Add the ApexGenius plugin. 3. Start using GitLab in Codex. Start in Plugins in the ChatGPT desktop app and authorize your connection.
1,000 free credits · No card required
How to connect GitLab to Codex
- 1Sign in to ApexGenius and connect GitLab
- 2Add the ApexGenius plugin to Codex
- 3Start using GitLab in Codex
- 1
Connect GitLab to ApexGenius
Paste it into ApexGenius
Paste your GitLab key into ApexGenius once.
- 2
Connect ApexGenius to Codex
Choose Codex
Back on Start, pick Codex and copy the prompt.
- 3
Approve access
ApexGenius opens its approval page. Review the access, then approve.
Add the ApexGenius plugin to Codex
Codex stores MCP servers in ~/.codex/config.toml. The ChatGPT desktop app, the Codex CLI and the IDE extension share that file, so one setup covers all three on the same machine.
- In the ChatGPT desktop app, open Plugins and select an ApexGenius plugin shared with you or one you created. Connect it and authorize the app connections you intend to use.
- No plugin? Open Settings, then MCP servers, then Add server. Name it ApexGenius, choose Streamable HTTP and paste the MCP address.
- Save, select Restart, then Authenticate, and sign in to ApexGenius in your browser.
- Start a new Codex task.
The MCP address
https://server.autom8.pro/mcp
Check it. In the composer, type /mcp to view the connected servers.
Steps follow OpenAI documentation, Model Context Protocol for ChatGPT and Codex (opens in a new tab), read November 12, 2026.
Then ask Codex
Using GitLab, tell me which GitLab user is connected, then list my five most recently updated open merge requests. Do not change anything.
Written setup, step by stepShow
Before you start
- A GitLab.com account that can see the projects you want your AI to read. Self-managed GitLab is not supported yet.
- A personal access token with only the read_api scope.
1. Connect GitLab to ApexGenius
- Create a token on GitLab.com. On GitLab.com open Edit profile, then Access, then Personal access tokens. Choose Generate token, then Legacy token. Name it, set an expiry date, pick only read_api, and choose Generate token. Copy the token once. The connect form links to a pre-filled token page.
- Open GitLab in Connections. Sign in to ApexGenius, open Connections, choose GitLab, and select Connect.
- Paste the token. Paste the token into the connection form. ApexGenius supplies the gitlab.com address, checks the token’s scopes and your GitLab user, and stores it encrypted. A token that can make changes is refused. Never paste the token into a chat.

Paste a GitLab.com personal access token with only the read_api scope and choose Connect. How to get it opens the token steps.Open full-size image (opens in a new tab) - Check the connected user. Open Tools to see the GitLab reads, then ask your AI the question below. Compare the username with your GitLab.com account.
2. Connect ApexGenius to Codex
The steps are above, under Add the ApexGenius plugin to Codex. These notes apply to Codex only.
- From the terminal. The commands are under Manual setup for developers.
codex mcp listshows the configured servers, andcodex mcp login apexgeniusruns the sign-in. - Without a local browser. Run
codex mcp login apexgenius --no-browser, open the printed authorization URL on another machine, sign in, and paste the full redirect URL back into the terminal. - Asking before writes. In
config.toml,default_tools_approval_mode = "writes"on the apexgenius server makes Codex ask before any tool that is not marked read-only. - ChatGPT on the web. ChatGPT on the web does not read local Codex configuration. It uses plugins.
- Access. When ApexGenius asks what Codex may use, choose Read only for the first test, or Custom to limit it to the tools you need.




The walkthrough uses the original ChatGPT web plugin captures. After connecting, open Codex in the desktop app and start a new task with ApexGenius. A ChatGPT web connection does not verify Codex access.
A public ApexGenius plugin listing is not verified. Use a plugin shared with you or one you created, subject to your account and workspace policy.
Create a personal plugin
Where Developer mode is available, open ChatGPT Settings, then Security and login, and enable it. In Plugins, select the plus button, enter ApexGenius and a description, then add this URL under Connection. Create the connection, complete OAuth, and review the tools. Return to Codex in the desktop app and start a new task with the plugin enabled.
https://server.autom8.pro/mcpNo plugin available? Use desktop settings
- In the ChatGPT desktop app, open Settings, then MCP servers, then Add server.
- Name the server ApexGenius, choose Streamable HTTP, and paste the MCP address below.
- Save, select Restart, then Authenticate. Sign in to ApexGenius and authorize the intended connections and access.
- Start a new Codex task and ask one read-only question. Check the returned result and its matching successful read in Activity.
https://server.autom8.pro/mcpManual setup for developers
Codex CLI is optional. Run these commands, complete browser authorization, then start a new session. Do not paste bearer tokens or static authorization headers.
Register the remote MCP server
codex mcp add apexgenius --url https://server.autom8.pro/mcpAuthorize in your browser
codex mcp login apexgeniusInspect registered servers
codex mcp listThe desktop app, CLI, and IDE extension share MCP configuration on the same host. The IDE extension does not install plugins. ChatGPT web does not read local Codex configuration.
3. Verify one safe read
Using GitLab, tell me which GitLab user is connected, then list my five most recently updated open merge requests. Do not change anything.
Using GitLab, tell me which GitLab user is connected, then list my five most recently updated open merge requests. Do not change anything.Confirm the username matches your GitLab.com account and the merge requests match GitLab. The connection is read-only, so this check changes nothing.
Full guide: the GitLab setup guide.
What it looks like in Codex
Illustration of a task, not a recorded customer result. Your answers come from the account and dates you choose.
apex_search_toolsGitLab user · Find the GitLab read routeCompleteapex_call_read_toolget_current_user · Read the connected userCompleteIllustrative example: the token belongs to the username octo-dev. Compare it with the GitLab.com account you meant to connect. Nothing was changed.
Read-only routeWhat to ask Codex about GitLab
- Check the user
Which GitLab user is connected? Do not change anything.
Runs
get_current_user(read). - Open merge requests
Summarize the open merge requests in the project I name, with author, age and reviewers.
Runs
list_project_merge_requests(read), thenlist_merge_request_notes(read). - Failed pipeline
Why did the latest pipeline on the main branch fail in the project I name?
Runs
list_pipelines(read), thenlist_pipeline_jobs(read).
These 3 questions use 5 of GitLab’s 28 operations. The full list is below.
- List the issues labeled bug that were opened in the last 30 days in the project I name. (read)
- Why did the latest pipeline on the main branch fail in the project I name? List the failed jobs. (read)
- Read the README in the project I name and explain how to run it locally. (read)
What Codex can do in GitLab
28 operations: 28 read. Every operation looks things up and changes nothing, so Codex cannot change GitLab through ApexGenius.
Account and groups
4 readget_current_userreadRead the GitLab user the token belongs to.
list_groupsreadList the groups you can see.
get_groupreadRead one group.
list_group_projectsreadList the projects in a group.
Projects
4 readlist_projectsreadList or search the projects you are a member of.
get_projectreadRead one project.
list_project_labelsreadList a project’s labels.
list_project_milestonesreadList a project’s milestones.
Issues
4 readlist_issuesreadList issues across your projects.
list_project_issuesreadList the issues in one project.
get_project_issuereadRead one issue.
list_issue_notesreadRead the comments on an issue.
Merge requests
6 readlist_merge_requestsreadList merge requests across your projects.
list_project_merge_requestsreadList the merge requests in one project.
get_project_merge_requestreadRead one merge request.
list_merge_request_notesreadRead the comments on a merge request.
list_merge_request_diffsreadRead the file changes in a merge request.
list_merge_request_commitsreadList the commits in a merge request.
Repository
7 readlist_repository_treereadList the files and folders in a repository.
get_repository_blobreadRead one file from the repository.
list_branchesreadList the branches in a repository.
list_commitsreadList commits on a branch.
get_commitreadRead one commit.
list_tagsreadList the tags in a repository.
list_releasesreadList a project’s releases.
CI/CD pipelines
3 readlist_pipelinesreadList a project’s pipelines by status, branch or date.
get_pipelinereadRead one pipeline.
list_pipeline_jobsreadList the jobs in a pipeline and how each one ended.
You choose the access. When you approve Codex, pick Full access, Read only, or Custom.
GitLab checks the token on every call. Your AI sees only the projects and data your GitLab user can read.
Every operation is a read. ApexGenius has no GitLab write tool, so nothing in GitLab can change through this connection.
ApexGenius refuses a token that has any scope beyond read_api, read_user and read_repository, such as api.
GitLab.com only. Self-managed GitLab and GitLab Dedicated are not supported yet.
GitLab.com limits how many API calls each user can make each minute.
Disconnecting removes the token from ApexGenius. Revoke it on GitLab.com to stop it everywhere.
Questions about connecting Codex to GitLab
Updated November 12, 2026.
How do I connect Codex to GitLab?
Sign in to ApexGenius and connect GitLab. In the ChatGPT desktop app, open Plugins and connect an ApexGenius plugin, or open Settings, then MCP servers, then Add server, and add the ApexGenius MCP address as a Streamable HTTP server. Then ask Codex: “Using GitLab, tell me which GitLab user is connected, then list my five most recently updated open merge requests. Do not change anything.” Start with a read, so nothing changes.
How do I check that Codex can use GitLab?
In the Codex composer, type /mcp to view the connected servers. ApexGenius should be listed. If it asks for sign-in, open Settings, then MCP servers, and select Authenticate. Start a new task, then ask: “Using GitLab, tell me which GitLab user is connected, then list my five most recently updated open merge requests. Do not change anything.”
Which token should I create?
A legacy personal access token with only the read_api scope. In GitLab.com open Edit profile, then Access, then Personal access tokens, and choose Generate token, then Legacy token. A token with api or another scope that can make changes is refused.
Can it change my projects?
No. Every operation is a read. It cannot create, edit, comment on, merge, close or delete anything. Make those changes on GitLab.com.
Can it read private projects?
Yes, the ones your GitLab user can see. Public projects are readable with any valid token.
Does it work with self-managed GitLab?
Not yet. The connector reaches gitlab.com only. Self-managed GitLab and GitLab Dedicated need a separate host check that is not built yet.
What happens when my token expires?
GitLab tokens expire within a year. When GitLab stops accepting it, reads fail. Create a new token on GitLab.com and paste it on the GitLab connection page in ApexGenius.
More connections like this one
Codex with other apps
All 48 apps Codex can use
Google Tasks
Google Calendar
Google Sheets
Calendly
ClickUp
monday.com
ElevenLabs
FreshBooks
Trello
Mobbin
SlackDiscord
ChatGPT Ads
Context.dev
Attio
Semrush
Notion
Apify
Google Ads
Google Analytics
Google Meet
Gmail
Google Chat
Google Docs
Google Drive
Google Slides
Apollo
Blotato
Bing Webmaster
Atlassian Rovo
Polymarket
OP.GGYouTube
YouTube Analytics
Salesforce
n8n
Confluence
Google Search Console
TypeSafeHubSpot
Connect GitLab to Codex today
Start free1,000 free credits. No card required. Disconnect any time.
