Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security ToolsKubeArmor v1.7.6-rc1(21.09.2026 um 18:49 Uhr)
IT Security Toolsvopono v1.0.2(21.09.2026 um 19:30 Uhr)
IT Security NachrichtenBoustead Singapore Reveals Cybersecurity Incident at Overseas Unit(21.09.2026 um 10:49 Uhr)
Malware / Trojaner / VirenPhantomRaven: Malware klaut Token und CI/CD-Geheimnisse über npm-Pakete(21.09.2026 um 20:05 Uhr)
IT Security NachrichtenBerlin/Bonn-Gesetz: Reaktionen auf Zusatzvereinbarung(21.09.2026 um 19:31 Uhr)
IT Security NachrichtenClaude Code Glitch Erases Years of Bengaluru Heritage Data(21.09.2026 um 19:31 Uhr)
IT Security NachrichtenIT Security News Hourly Summary 2026-09-21 20h : 7 posts(21.09.2026 um 20:00 Uhr)
IT Security NachrichtenGoogle Fined €403 Million Over GDPR Violations Tied to Location Data(21.09.2026 um 18:57 Uhr)
IT Security ToolsKubeArmor v1.7.6-rc1(21.09.2026 um 18:49 Uhr)
IT Security Toolsvopono v1.0.2(21.09.2026 um 19:30 Uhr)
IT Security NachrichtenBoustead Singapore Reveals Cybersecurity Incident at Overseas Unit(21.09.2026 um 10:49 Uhr)
Malware / Trojaner / VirenPhantomRaven: Malware klaut Token und CI/CD-Geheimnisse über npm-Pakete(21.09.2026 um 20:05 Uhr)
IT Security NachrichtenBerlin/Bonn-Gesetz: Reaktionen auf Zusatzvereinbarung(21.09.2026 um 19:31 Uhr)
IT Security NachrichtenClaude Code Glitch Erases Years of Bengaluru Heritage Data(21.09.2026 um 19:31 Uhr)
IT Security NachrichtenIT Security News Hourly Summary 2026-09-21 20h : 7 posts(21.09.2026 um 20:00 Uhr)
IT Security NachrichtenGoogle Fined €403 Million Over GDPR Violations Tied to Location Data(21.09.2026 um 18:57 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Run Codex CLI with Local LLM - Gemma4 with llama.cpp on WSL2

requirements llama.cpp nodejs (if you use npm) I'm using NVIDIA GeForce RTX 3070. Step 1. Install codex First install codex on WSL. If Node.js isn’t installed yet, I recommend installing it with mise. Migrating f…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




requirements




  • llama.cpp

  • nodejs (if you use npm)



I'm using NVIDIA GeForce RTX 3070.






Step 1. Install codex



First install codex on WSL.

If Node.js isn’t installed yet, I recommend installing it with mise.










npm install -g @openai/codex@latest

# or use curl
curl -fsSL https://chatgpt.com/codex/install.sh | sh












CLI – Codex | OpenAI Developers



Pair with Codex in your terminal



favicon
developers.openai.com










Step 2. Create .codex folder



We need to create config.toml to use local llm with llama.cpp. First we need to run codex




codex





You don't need to set up anything here. You just need to hit ctrl + c.





Step 3. Create config.toml



Once you run Codex, your WSL will have .codex folder.

You can use whatever you like.



vim ~/.codex/config.toml





config.toml



[model_providers.llama]
name = "llama.cpp"
base_url = "http://localhost:8080/v1"
wire_api = "responses"
stream_idle_timeout_ms = 10000000







Step 4. Run llama.server to run Gemma-4



If llama.cpp isn't build/installed yet, you will need to build by yourself or install via homebrew.









For this article, I used google--gemma-4-12B-it-Q4_K_M.gguf










baxin/quantized-models at main



We’re on a journey to advance and democratize artificial intelligence through open source and open science.



huggingface.co






My folder structure




drwxr-xr-x 30 root root 4096 Jun  8 23:00 llama.cpp
drwxr-xr-x 6 root root 4096 Jun 8 02:21 quantization









ls -l quantization/
total 276
-rw-r--r-- 1 root root 0 Jun 6 13:00 README.md
drwxr-xr-x 2 root root 4096 Jun 8 23:29 gguf <-- google--gemma-4-12B-it-Q4_K_M.gguf is here
-rw-r--r-- 1 root root 90 Jun 6 13:00 main.py
-rw-r--r-- 1 root root 26 Jun 6 13:17 mise.toml
drwxr-xr-x 3 root root 4096 Jun 8 02:33 models
-rw-r--r-- 1 root root 307 Jun 6 13:00 pyproject.toml
-rwxr-xr-x 1 root root 4060 Jun 8 02:21 quantize.sh
-rw-r--r-- 1 root root 254959 Jun 6 13:00 uv.lock






We need to run llama.server

-c: context size should be bigger than 7959. I set -c 4096 first time and got the following error.

{"error":{"code":400,"message":"request (7959 tokens) exceeds the available context size (4096 tokens), try increasing it","type":"exceed_context_size_error","n_prompt_tokens":7959,"n_ctx":4096}}




cd llama.cpp
./build/bin/llama-server -m ../quantization/gguf/gemma-4-12B-it-qat-UD-Q4_K_XL.gguf -c 100000 --port 8080









Step 5. Run Codex



Now, it's a time to run Codex

Open new tab/session and run Codex




codex --model ./quantization/gguf/gemma-4-12B-it-qat-UD-Q4_K_XL.gguf -c model_provider=llama --search --dangerously-bypass-approvals-and-sandbox






I sent a very simple prompt and got the following app.

The app allows me to add a new task, check a task, and delete a task.




Can you create a simple todo app with reactjs and typescript






todo app

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Run Codex CLI with Local LLM - Gemma4 with llama.cpp on WSL2

Thematisch verwandte Begriffe: Codex, with, Local, Gemma4 · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-63416 | draw.io is a configurable diagramming and whiteboarding application. Pri…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick