NathanLegakis.com

Random Bright, Funny, Info, Deep Thoughts, AI Chats, and More


Agentic Coding python app OpenClaw Native Windows Development Node.js 22 Using OpenClaw TUI not 18789 for ChatGPT 5.3-Codex

Let’s Put Agentic Coding to use by creating a python app with OpenClaw Native Windows Development (Non-WSL) with PowerShell 7 with Node.js 22 Using OpenClaw TUI instead of localhost port 18789 for ChatGPT 5.3-Codex help coding the app. Learn Python & Web Development Easily Vibe Coding with AI. Run the development server at localhost:5000 with FastAPI and Node.js runtime. Become a Software Development Engineer / Vibe Coder
VIBE CODING SETUP GUIDE
FastAPI + Node.js with OpenClaw on Native Windows (PowerShell 7)

Overview
You’re creating an agent-driven coding environment using OpenClaw. Instead of copying and pasting from web interfaces, you’ll use a Terminal UI (TUI) so ChatGPT 5.3-Codex can work directly inside your workspace.

1. ENVIRONMENT SETUP (NATIVE WINDOWS)

Use PowerShell 7 — not Windows PowerShell 5.1.

Install the following:

• Node.js 22
Install the LTS version or run:
nvm install 22

• Python
Make sure Python 3.10 or newer is installed and added to PATH.

• OpenClaw
Run the installer inside PowerShell 7:

iwr -useb [https://openclaw.ai/install.ps1](https://openclaw.ai/install.ps1) | iex

2. ONBOARDING OPENCLAW FOR AGENTIC CODING

You will use the TUI instead of the web interface.

Steps:

• Start onboarding
openclaw onboard –flow quickstart

• Select model
Choose ChatGPT (OpenAI) → 5.3-Codex

• Interaction mode
Select: “Hatch in TUI”

• Security policy
If you want fewer prompts during automation, set:

exec_approval = Low

(Only do this if you understand the risks.)

3. CREATE THE HYBRID FASTAPI + NODE APP

Inside your project folder, tell OpenClaw:

“Create a FastAPI backend on port 5000 and a Node.js runtime script that calls it.”

Python Backend (main.py)

from fastapi import FastAPI
import uvicorn

app = FastAPI()

@app.get(“/”)
async def root():
return {“status”: “Vibe Coding Active”, “engine”: “GPT-5.3-Codex”}

if **name** == “**main**”:
uvicorn.run(app, host=”127.0.0.1″, port=5000)

Node.js Runtime (app.js)

const startVibe = async () => {
const res = await fetch(‘[http://localhost:5000/](http://localhost:5000/)’);
const data = await res.json();
console.log(“Response from FastAPI:”, data);
};

startVibe();

4. RUNNING THE DEV SERVER

Use PowerShell 7:

• Start FastAPI backend
fastapi dev main.py –port 5000

• Run Node.js runtime
node app.js

Tip:
If the TUI disconnects from the gateway, run:

openclaw doctor

This restores the agent connection (“heartbeat”).

If you want, I can also convert this into a **super-minimal cheat sheet** version (like a one-screen quick reference) — which might actually fit your coding workflow better 👍.

Discover more from NathanLegakis.com

Subscribe now to keep reading and get access to the full archive.

Continue reading