Python Basics
Variables, loops, functions — with live code cells you edit and run instantly.
Okama Studio v0.3.0
Okama Studio is a browser-based game engine and IDE for OkamaOS.
Write Python + pygame games, preview with Pyodide, export
signed .ok packages, and push directly to an
OkamaOS device over your local network.
Feature overview
FileTree sidebar, Monaco Editor with a custom okama-dark theme, and a right panel for AI, preview, assets, packages, and version history. Everything a game project needs in one browser tab.
Streaming agentic AI powered by Gemini or Qwen. The agent reads your entire project context, writes complete files, and can commit, branch, and create issues. No copy-paste required.
Pyodide 0.26 WASM runs your Python + pygame code directly in the browser. Stdout is captured in a scrollable console. No install, no local Python required.
The Package Builder tab validates your manifest, signs the bundle with SHA-256, and exports a ready-to-install .ok file. Also generates a companion .ok.sig file.
The Server tab shows your LAN IP and URL. Click "Publish to Dev Server" in the Package Builder and the game appears in Game Store on any OkamaOS device on your network — install wirelessly without USB.
10-chapter Python × Pygame curriculum with live PyPlayground cells, theory, exercises with hint/solution toggle, an AI Tutor panel, and XP tracking in localStorage.
Drag-and-drop image and audio uploads. One-click AI integration prompt generation inserts the asset into your game code via the agent.
localStorage-backed version control — branches, commits (file snapshots you can restore), issues with labels, and pull requests with merge/close. Integrated with the AI agent.
Quick start
Visit the Studio URL. The Dashboard shows a "New Game" wizard with 4 genre templates — Platformer, Top-Down, Puzzle, and Arcade. The AI generates a working starter in seconds.
Open the Agent tab, describe what you want, and the AI writes complete files into your project. It can read your code, create branches, and run your game in the preview panel.
Click Preview to run your Python + pygame game in-browser via Pyodide WASM. The console panel shows stdout. Iterate quickly without leaving the browser.
Open the Package tab. Fill in your publisher ID and version, then click "Build Package". Studio validates the manifest, signs it with SHA-256, and downloads mygame.ok.
Configuration
Studio API keys are stored in your browser's localStorage only — they are never sent to any server. Keys are required to enable AI features.
Go to Settings in Studio to enter your keys. The free-tier Gemini model (gemini-3.1-flash-lite-preview) works with a free Google AI Studio API key.
The default model. Works with a free Google AI Studio API key and has generous rate limits for game development use.
AI Agent
The Okama Agent uses XML-format tool calls parsed from its streaming response. Nine tools are available; the agent picks the right ones automatically. You can also ask for specific tool actions by name.
Write complete file contents to a project path. The agent always sends full file contents — no partial patches.
Read the current contents of any project file. Used to inspect code before making changes.
Remove a file from the project. Used when refactoring or cleaning up generated code.
List all files in the project (or a subdirectory). Used to understand project structure before writing.
Search project files for a pattern. Used to locate functions, imports, or any text before editing.
Create a commit snapshot of the current project state with a message. Stored in localStorage version history.
Create a new branch in the version history. Use for experimental features or parallel game variants.
Add an issue to the project's version history. Useful for tracking bugs or feature requests as you build.
Trigger the Pyodide preview panel to run the current project code. Used to test a game after writing.
Wireless deployment
The Dev Server lets you push games from Studio directly to an OkamaOS device on your local network — no USB stick required.
http://192.168.1.42:3000).Studio runs a lightweight Express API alongside the Next.js dev server. OkamaOS devices consume the same catalog JSON format as the public portal.
/api/dev-store — catalog JSON/api/dev-store — upload .ok bundle/api/dev-store — remove game by ID/api/dev-store/info — server LAN infoLearn Hub
10 chapters from variables to collision detection. Each lesson has theory, a live PyPlayground cell you can edit and run, an exercise with hint/solution toggle, and an AI Tutor panel that answers questions in context. XP tracks your progress.
Variables, loops, functions — with live code cells you edit and run instantly.
Drawing, animation, input, collision detection — every concept with a working example.
State machines, save data, and the controller input protocol — ship a complete .ok game.