Inkling Studio icon Inkling Studio v1.18.1
Pure Go + Python · Zero Node.js · Single Executable

Local Blackwell AI, packaged into one binary.

InklingStudio.exe embeds the native Windows WebView2 desktop + system tray shell, GoWebComponents v8 WebAssembly UI, LAN web server, and all 47 inkling_server Python modules in-process—backed by custom NVFP4/MXFP8 Triton kernels, KnowLine System-1 routing, and full local voice.

164.3 TFLOPS
NVFP4 SM 12.1 tl.dot_scaled
3,753 tok/s
7.5K Real Prefill (6.03×)
39.0 tok/s
CUDA-Graph Decode (97.4% peak)
47 Modules
Embedded In-Process in 1 EXE
InklingStudio.exe — Launch Modes
# Build once (WASM + unified single exe)
PS> go run ./tools/build -target all

# Launch native WebView2 Desktop + System Tray
PS> .\bin\InklingStudio.exe

# Or start minimized in the tray
PS> .\bin\InklingStudio.exe --tray-only

✓ WebView2 UI + System Tray active
✓ 47 Python modules hosted in-process (PID shared)
✓ LAN GWC Web on :8298 · API/MCP on :8297
# Run headless without window or tray (same single exe)
PS> .\bin\InklingStudio.exe --headless --addr :8298

Inkling Studio (Headless · single-exe in-process Python,
47 embedded modules) listening on http://127.0.0.1:8298
  LAN GWC Web:     http://<your-lan-ip>:8298
  LAN Classic/API: http://<your-lan-ip>:8297

✓ Ctrl+C triggers graceful FastAPI lifespan + CUDA unload
# Prepare pairing code, SSH key & VPS config
PS> .\.venv\Scripts\python.exe remote\prepare.py \
      --domain chat.example.com --ssh-host vps.example.com

# Home Wi-Fi HTTPS PWA (port 8444) or VPS tunnel
PS> .\Start Inkling Mobile LAN.cmd
PS> .\Start Inkling Remote.cmd --connect

✓ Dedicated mobile.wasm PWA + SQLite thread sync
✓ 8-digit pairing + HttpOnly SameSite=Strict cookie
# Drop-in OpenAI /v1/chat/completions + reasoning_content
POST http://127.0.0.1:8297/v1/chat/completions
{
  "model": "inkling-2-mini",
  "reasoning_effort": "medium",
  "messages": [{"role": "user", "content": "Compute $214,205 * 1.065"}]
}

# Streamable HTTP MCP Server + KnowLine System-1
POST http://127.0.0.1:8297/mcp
POST http://127.0.0.1:8297/v1/systemone
Full-Stack Local AI

Everything engineered from kernel to UI

Zero bloatware, zero Electron, zero cloud lock-in—every layer is tuned for sub-millisecond responsiveness on local hardware.

Single-EXE Runtime

In-Process CPython Host (CGO_ENABLED=0)

InklingStudio.exe embeds all 47 inkling_server/*.py modules via //go:embed and loads python312.dll directly on a persistent OS-locked thread using Win32 LoadLibraryEx. Supports desktop GUI, --headless, --tray-only, --smoke-test, and self-hosted -I -c / -m worker subcommands.

Blackwell SM 12.1

Native NVFP4 & MXFP8 Kernels

Streams checkpoints via an 8 MiB host buffer (~18.2 GiB VRAM footprint) using Triton tl.dot_scaled, 32K pre-captured CUDA Graphs, 4-stage exact Triton nucleus sampling, and O(1) incremental BPE streaming.

KnowLine-4B System-1

JEV Routing & Async Thinking Cues

Two-head schema-driven tool router keeps complex prompts at 100% tool fidelity while pruning simple queries. Async JEV cue selector picks across 12 thought types × 5 tones (60 unique spoken openers) with zero added TTFT.

Local Voice Suite

ASR, Wake Word & Spoken Numbers

Nemotron 0.6B CUDA ASR, CPU Silero VAD wake word with barge-in ducking, and 3 TTS engines (MagpieTTS ~15× RT, Kokoro-82M 0 VRAM, Qwen3-TTS). Conversational mode & TTS spell out $214,205 as “two hundred and fourteen thousand two hundred and five dollars”.

Blended Chat Applets

20 Prebuilt Widgets & Live Hardware Controls

Inline calculators, timers, budget trackers, charts, and live hardware controls (Windows master volume, media keys, WLED, Philips Hue, Home Assistant, psutil monitors) wired via applet_action_register. Rendered borderless in chat at exact content height inside sandbox="allow-scripts" frames with live light/dark theme sync.

Agent Tools & Sync

Exact Math, Search, Browser & Memory

Code-verified math_calc / math_equation / isolated math_python, DuckDuckGo / Tavily / Brave / SearXNG search, Playwright Edge browser panel, read-only local FS, separate memory / journal / notepad stores, contextual reminders, and SQLite thread sync.

Inkling Remote

Standalone Mobile PWA

Dedicated mobile.wasm phone app with 8-digit pairing, rate-limited HttpOnly sessions, LAN HTTPS & VPS SSH tunnel gateway, offline reconnection backoff, dictation, and wake word.

Observability & CI

Diagnostics Ledger & GitHub Actions

Structured SQLite logs/diagnostics.db with X-Request-ID correlation, inkling-maintenance MCP recovery tools, 5-locale i18n (including Arabic RTL), and automated Windows/Linux CI + Playwright E2E + SemVer release pipelines.

Measured on Blackwell SM 12.1

Empirical Speedups Across Every Layer

Real checkpoint measurements on RTX Spark N1X / GB10 (48 SMs, 96 GiB) from devlog.md.

Optimization Multipliers

voice_manager.status() probe431× (2.586 ms → 0.006 ms)
ModelService.stream() 200-tok bridge131.7× (50.98 ms → 0.387 ms)
Streaming BPE decode (1,500 tokens)80.6× (257 ms → 3.19 ms)
FastAPI SSE /v1/chat/completions35.8× (58.21 ms → 1.625 ms)
200K-vocab Triton top_p=0.9 sampling21.4× (5.06 ms → 0.236 ms)
Real 7.7K-token checkpoint prefill6.03× (617 → 3,753 tok/s)

Real Checkpoint Numbers

Metric Baseline Optimized
NVFP4 tl.dot_scaled GEMM 52.5 TFLOPS (BF16) 164.3 TFLOPS
MXFP8 tl.dot_scaled GEMM 52.5 TFLOPS (BF16) 87.7 TFLOPS
7.5K Needle Prefill 617 tok/s 3,753 tok/s
16.5K Needle Prefill — 3,221 tok/s
Decode (temp=0) ~35 tok/s 39.02 tok/s
Decode (temp=0.8, top_p=0.9) ~27 tok/s 38.97 tok/s
Go Proxy SSE Flush 40 ms buffered 0 ms instant
System Design

Single-Process Go + Embedded Python Architecture

Clean separation between pure-Go domain logic, GoWebComponents WASM views, and the in-process Python inference engine.

InklingStudio.exe — Single Pure-Go Binary (CGO_ENABLED=0) Desktop Shell / --headless WebView2 + Windows System Tray or Console-Attached Headless Host GoWebComponents v8 WASM Embedded app.wasm + 5-Locale i18n Pure-Go Domain + Zero-Alloc Wake DSP Go Web Host & SSE Proxy LAN :8298 · FlushInterval = -1 Private-LAN CSRF & Origin Guards internal/pyhost → In-Process python312.dll (47 Embedded inkling_server/*.py Modules · :8297) Blackwell Engine NVFP4 / MXFP8 Triton 32K CUDA Graphs · Vision KnowLine System-1 2-Head Tool Router 60 Async JEV Voice Cues Local Voice Suite Nemotron ASR · Silero VAD Magpie / Kokoro / Qwen3 Tools, Applets & MCP Math · Search · Browser · FS 20 Applets · SQLite Sync
Up & Running in Minutes

Quick Start & Reference

01

Install Python CUDA Runtime

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt

Place thinkingmachines/Inkling-2-Mini safetensors in ~/models/Inkling-2-Mini or set INKLING_MODEL_PATH.

02

Build the Unified Binary

go run ./tools/build -target all
.\bin\InklingStudio.exe --smoke-test

Compiles app.wasm, mobile.wasm, bin/InklingStudio.exe, and bin/inkling-remote.exe with CGO_ENABLED=0.

03

Launch GUI or Headless

.\bin\InklingStudio.exe
.\bin\InklingStudio.exe --headless --addr :8298

One process hosts both :8298 (Go Web UI) and :8297 (embedded FastAPI/CUDA backend).

REST, OpenAI /v1, MCP & WebSocket Endpoints
  • OpenAI API: POST /v1/chat/completions (streaming, reasoning_content, tools, skills, vision, JSON schema), GET /v1/models, POST /v1/audio/speech, POST /v1/audio/transcriptions
  • KnowLine System-1: POST /v1/systemone, POST /api/decision/load, POST /api/decision/route, GET /api/decision/status
  • Voice & Thinking Cues: POST /api/voice/tts, POST /api/voice/stt, POST /api/voice/thinking-cue, PUT /api/voice/config, WS /api/voice/stt/realtime, WS /api/voice/wake
  • MCP Server: POST /mcp (Streamable HTTP JSON-RPC 2.0) · Maintenance stdio server: python -m inkling_server.maintenance stdio
  • Tools & Sync: /api/{search,fs,browser,memory,journal,notepad,math,stats,notify,applets,mcp}/{tools,call}, /api/threads/sync
Environment Variables & Runtime Flags
  • INKLING_MODEL_PATH — Path to Inkling-2-Mini safetensors directory (default ~/models/Inkling-2-Mini)
  • INKLING_DECISION_MODEL_PATH — Path to KnowLine-4B-Gen5.5 (default ~/models/KnowLine-4B-Gen5.5)
  • INKLING_HOST — Backend bind address (default 0.0.0.0; set 127.0.0.1 for local-only)
  • INKLING_EXTERNAL_BACKEND=1 / --external-backend — Use external python.exe worker instead of in-process host
  • INKLING_USE_DISK_PYTHON=1 — Override embedded Python modules with on-disk inkling_server/*.py during development
CI, Verification & Test Commands
go vet ./internal/... ./cmd/... ./tools/...
go test -v ./internal/domain/... ./internal/backend/... ./internal/webhost/... ./internal/l10n/... ./internal/remote/... ./internal/pyhost/... ./frontend/view/...
go test -v -timeout 240s ./internal/e2e/...
.\.venv\Scripts\python.exe -m unittest tests.test_api tests.test_voice tests.test_thinking_cues tests.test_tool_router tests.test_mcp tests.test_search tests.test_fs tests.test_memory tests.test_notes tests.test_math tests.test_prompt_stats tests.test_threads tests.test_applet_presets tests.test_applet_actions tests.test_diagnostics tests.test_tool_protocol tests.test_service_concurrency