Uploaded July 2026 | Updated September 2026, 3 weeks ago
OpenAI Codex Background Agents: Turn a Cheap VPS Into a 24/7 AI Dev Team
Learn how to run OpenAI Codex as scheduled background coding agents on a Hostinger VPS so you can ship bug fixes, security patches, and new features around the clock without keeping your PC switched on.
π Hostinger VPS with the OpenAI Codex template, use code LEONCODEX for an extra 10% off: hostinger.com/leoncodex
π My AI coding courses, live Q&A, weekly builder challenges, direct access to me, and a serious builder community: skool.com/agentic-labs
π Get the free 7-Day AI Builder Challenge + resources for this video: skool.com/leonvanzyl
Disclosure: This video is sponsored by Hostinger. Some links are affiliate links, which means I may earn a small commission at no extra cost to you.
In this video, I show you how to set up three background coding agents that run every 10 minutes and continuously improve a real app (my CRM Forge project) without me getting involved. You'll learn how to schedule Codex with cron jobs on an always-on VPS, connect Codex securely to GitHub using fine-grained access tokens, and review and merge the pull requests your agents create, using OpenAI Codex, GPT-5.5, GitHub, and a Hostinger VPS.
===========================
Resources Mentioned
===========================
π¦ Source code, prompts, workflows + peer discussion:
skool.com/leonvanzyl
- Hostinger VPS (OpenAI Codex template): hostinger.com/leoncodex
- OpenAI Codex docs: developers.openai.com/codex
- GitHub fine-grained personal access tokens: docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
===========================
Watch This Next
===========================
βΆοΈ Codex vs Claude Code: What I Found After 30 Days: youtu.be/-ZrzDuodAh8
===========================
Go Deeper with Agentic Labs
===========================
π§ͺ AI coding courses, live Q&A, weekly builder challenges, direct access to me, and a serious builder community:
skool.com/agentic-labs
===========================
Subscribe / Connect
===========================
Subscribe for practical AI building, agentic coding, automation, and real app builds:
youtube.com/@leonvanzyl?sub_confirmation=1
Business & sponsorship enquiries:
leon@cognaitiv.ai
===========================
Question
===========================
What are you building with background coding agents right now? Let me know in the comments.
β±οΈ Chapters
0:00 Background Agents Demo
1:22 Local Scheduling Limitations
1:36 Codex Cloud Limitations
2:58 Why Use A VPS
3:20 Codex VPS Workflow Tour
5:13 GitHub Access Token Setup
7:11 Hostinger VPS Setup
7:58 Running Codex On VPS
9:17 Connect Codex To GitHub
10:22 Clone Your Repository
10:44 How Cron Jobs Work
11:00 Codex Headless Mode
11:27 Creating Background Agents
12:27 Adding More Agents
13:05 Masterclass And Wrap Up
===========================
About This Video
===========================
In this video, I show you how to run OpenAI Codex as autonomous background coding agents on a VPS using cron jobs, headless mode, and GitHub pull requests. This tutorial is for developers, AI builders, and serious no-code/low-code builders who want practical workflows for building real apps, AI agents, automations, and coding systems.
On this channel, I share practical AI engineering and agentic coding workflows using tools like Claude Code, OpenCode, Codex, Cursor, n8n, Next.js, MCP, local AI models, and modern AI development workflows.
#agenticcoding #codex #aicoding
OpenAI Codex Background Agents: Turn a Cheap VPS Into a 24/7 AI Dev Team
Learn how to run OpenAI Codex as scheduled background coding agents on a Hostinger VPS so you can ship bug fixes, security patches, and new features around the clock without keeping your PC switched on.
π Hostinger VPS with the OpenAI Codex template, use code LEONCODEX for an extra 10% off: hostinger.com/leoncodex
π My AI coding courses, live Q&A, weekly builder challenges, direct access to me, and a serious builder community: skool.com/agentic-labs
π Get the free 7-Day AI Builder Challenge + resources for this video: skool.com/leonvanzyl
Disclosure: This video is sponsored by Hostinger. Some links are affiliate links, which means I may earn a small commission at no extra cost to you.
In this video, I show you how to set up three background coding agents that run every 10 minutes and continuously improve a real app (my CRM Forge project) without me getting involved. You'll learn how to schedule Codex with cron jobs on an always-on VPS, connect Codex securely to GitHub using fine-grained access tokens, and review and merge the pull requests your agents create, using OpenAI Codex, GPT-5.5, GitHub, and a Hostinger VPS.
===========================
Resources Mentioned
===========================
π¦ Source code, prompts, workflows + peer discussion:
skool.com/leonvanzyl
- Hostinger VPS (OpenAI Codex template): hostinger.com/leoncodex
- OpenAI Codex docs: developers.openai.com/codex
- GitHub fine-grained personal access tokens: docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
===========================
Watch This Next
===========================
βΆοΈ Codex vs Claude Code: What I Found After 30 Days: youtu.be/-ZrzDuodAh8
===========================
Go Deeper with Agentic Labs
===========================
π§ͺ AI coding courses, live Q&A, weekly builder challenges, direct access to me, and a serious builder community:
skool.com/agentic-labs
===========================
Subscribe / Connect
===========================
Subscribe for practical AI building, agentic coding, automation, and real app builds:
youtube.com/@leonvanzyl?sub_confirmation=1
Business & sponsorship enquiries:
leon@cognaitiv.ai
===========================
Question
===========================
What are you building with background coding agents right now? Let me know in the comments.
β±οΈ Chapters
0:00 Background Agents Demo
1:22 Local Scheduling Limitations
1:36 Codex Cloud Limitations
2:58 Why Use A VPS
3:20 Codex VPS Workflow Tour
5:13 GitHub Access Token Setup
7:11 Hostinger VPS Setup
7:58 Running Codex On VPS
9:17 Connect Codex To GitHub
10:22 Clone Your Repository
10:44 How Cron Jobs Work
11:00 Codex Headless Mode
11:27 Creating Background Agents
12:27 Adding More Agents
13:05 Masterclass And Wrap Up
===========================
About This Video
===========================
In this video, I show you how to run OpenAI Codex as autonomous background coding agents on a VPS using cron jobs, headless mode, and GitHub pull requests. This tutorial is for developers, AI builders, and serious no-code/low-code builders who want practical workflows for building real apps, AI agents, automations, and coding systems.
On this channel, I share practical AI engineering and agentic coding workflows using tools like Claude Code, OpenCode, Codex, Cursor, n8n, Next.js, MCP, local AI models, and modern AI development workflows.
#agenticcoding #codex #aicoding










