We successfully installed Codex CLI, authenticated using Firefox in Fluxbox, used it in the Linux framebuffer console and created a project-specific AGENTS.md. Your version or interface may look different.
Before you begin
You need a Linux computer with internet access, a normal user account, curl, and a compatible OpenAI account. Codex can be used through eligible ChatGPT plans, including Plus, subject to usage limits. API-key login is a separate, usage-billed option.
The Codex CLI program runs on your Linux machine. The AI model itself is accessed over the internet — it is not being downloaded to your Dell or running inference entirely offline.
1. Check the console and CPU
Log into Slackware as your usual user, not root. Start in Fluxbox and Konsole if you prefer larger, easier-to-read text.
uname -m
echo "$TERM"
command -v curl
Our DarkPC box reported an x86-64 Linux system. On a text console, TERM often shows linux. If curl is missing, install it using your distribution's normal package method before continuing.
2. Install the standalone Codex CLI
The official standalone installer avoids requiring npm. Download it first so you can inspect the script before execution:
curl -fsSL https://chatgpt.com/codex/install.sh \
-o /tmp/codex-install.sh
less /tmp/codex-install.sh
Press q to leave less. If the script looks correct and you trust the source, run:
sh /tmp/codex-install.sh
Then open a new terminal if needed, and verify the installation:
codex --version
Our installation reported Codex CLI v0.167.0 on 8 November 2026. Later downloads will probably show a newer version.
3. Sign in through Firefox
For a machine with Fluxbox and Firefox, the easiest route is usually the regular browser sign-in. In Konsole:
codex login
Firefox opens the OpenAI sign-in page. Sign in with the ChatGPT account that has access to Codex, approve the connection and return to Konsole. You should see a successful login message. Check it with:
codex login status
If you only have a text console, you can try codex login --device-auth. Device-code sign-in may first need enabling in your ChatGPT Security settings. Open the supplied web address on another device and enter the one-time code. If device login is disabled, the normal Firefox flow may be simpler on the same machine.
Never publish your password, login codes, screenshots of callback URLs, or ~/.codex/auth.json. That authentication file may contain sensitive tokens. Codex should run as your regular Linux user.
4. Start a safe first conversation
Make a separate workspace so you can learn without pointing an agent at your live website files:
mkdir -p ~/darkpc-ai
cd ~/darkpc-ai
codex
Try a small first prompt:
Hello! I'm learning Slackware Linux.
Please explain five useful Bash commands.
Don't edit files or run commands without asking.
Codex understands natural-language requests. It can inspect project files and propose changes, so read the commands and file edits carefully. In the interactive interface, use /permissions to review approval settings. Do not enable unrestricted execution just for convenience.
5. Try the real Linux framebuffer console
This was the fun part of our DarkPC build! Once signed in through Firefox, leave Codex with /exit. Switch to another Linux text console — for example Ctrl + Alt + F2 — and log in as the same user.
cd ~/darkpc-ai
codex
On our Slackware 15.0 system, Codex opened in the console with readable green text against a dark background. A framebuffer is still a Linux text terminal, so compatibility can vary with fonts, console modes and terminal features.
If the interface misbehaves, exit and try:
codex --no-alt-screen
For a basic non-interactive prompt that finishes in the terminal, try:
codex exec "Explain the difference between a TTY and a terminal emulator."
Return to your graphical desktop using the function key where X is running (often Ctrl + Alt + F7, but it can differ).
6. Give the assistant DarkPC instructions
Inside your ~/darkpc-ai Codex session, type:
/init
This creates an AGENTS.md file to guide Codex when it works in that directory. We then asked it to add the purpose of DarkPC while preserving existing instructions:
DarkPC.net is a beginner-friendly Linux, Unix
and ethical cybersecurity learning website.
Focus on Slackware 15.0, BSD, Bash, tmux,
Fluxbox, beginner system administration and
safe, authorised security labs.
Explain actions before editing files.
Approve changes only after checking the diff. An AGENTS.md file is a project guide, not magic memory of all your chats: Codex doesn't automatically import your ChatGPT conversation history.
7. Everyday commands worth remembering
# Start a fresh session in the project folder
cd ~/darkpc-ai && codex
# Reopen your latest session
codex resume --last
# Verify the signed-in account
codex login status
# Sign out of Codex (if needed)
codex logout
Inside Codex, you can type /status for session details, /model to select an available model, /permissions for controls and /review to review work. The available models and UI can change.
Troubleshooting
codex: command not found
Start a new Konsole session, then retry. The installer may have added Codex to your user PATH but the old shell hasn't picked it up yet. Check ~/.local/bin and your shell configuration if the problem persists.
Device-code login says it isn't enabled
Use codex login from Fluxbox and complete the normal Firefox login, or enable device-code sign-in in ChatGPT Security settings if the control is available to you.
Codex cannot open or verify a website
Browser and search capabilities differ from Firefox. Supply the site's source files or text in your project directory, or describe the site explicitly in AGENTS.md. Don't assume a failed website lookup means your site is down.
Framebuffer console displays odd characters
Try codex --no-alt-screen, confirm echo "$TERM", or use Fluxbox/Konsole. You can still run codex exec for simpler plain-terminal output.
Will ChatGPT Plus make it entirely free?
Using your eligible ChatGPT subscription means Codex usage is subject to your plan's included access and usage limits. If you choose API-key sign-in instead, that uses separate API billing.
What's next for DarkPC?
Now that our old-school Slackware box talks to a modern coding assistant, let's build thoughtful projects: explain a shell command, generate a learning exercise, review a small Bash script, or draft a safe new tutorial. Always keep humans in charge of the terminal.
Official references
- OpenAI Codex on GitHub — official CLI installation
- Codex CLI guide — basic commands
- Authentication guide — browser and device-code sign-in
- Codex command reference — options, resume, exec and terminal compatibility
Tested: 8 November 2026. The DarkPC team is independent of OpenAI; trademarks belong to their respective owners. Always check the current upstream docs before installing software.