OktoScript is a decision-driven language created by OktoSeek AI to design, train, evaluate, control and govern AI models end-to-end.
It goes far beyond a simple training script. OktoScript introduces native intelligence, autonomous decision-making and behavioral control into the AI development lifecycle.
It allows you to define:
How a model is trained
How it should behave
How it should react to problems
How and when it should stop, adapt or improve itself
All using clear, readable and structured commands, built specifically for AI engineering.
Designed to be:
✅ Human-readable – Intuitive syntax that engineers and non-engineers can understand
pizzabot/ - Complete project example with full structure
📚 Supported Dataset Formats
✅ JSONL - Line-delimited JSON
✅ CSV - Comma-separated values
✅ TXT - Plain text files
✅ Parquet - Columnar storage
✅ Image + Caption - Vision datasets
✅ Question & Answer (QA) - Q&A pairs
✅ Instruction datasets - Instruction-following
✅ Custom Field Names (v1.2+) - Define input_field and output_field for any column names
✅ Multi-modal - (future support)
Example (JSONL):
json
1{"input":"What flavors do you have?","output":"We offer Margherita, Pepperoni and Four Cheese."}2{"input":"Do you deliver?","output":"Yes, delivery is available in your region."}
Custom Field Names (v1.2+)
OktoScript now supports custom field names in datasets, allowing you to work with any column names:
The OktoEngine CLI is minimal by design. All intelligence lives in the .okt file. The terminal is just the execution port.
🌐 Web Editor Command
Open OktoScript files in the web editor:
bash
1# Open editor with a specific file2okto web --file scripts/train.okt
34# Open empty editor5okto web
The okto web command opens the OktoScript Web Editor in your browser. When you provide a file path, it automatically loads the file content for editing. The editor features:
Smart Autocomplete – Context-aware suggestions based on the current block (ENV, DATASET, MODEL, TRAIN, etc.)
Real-time Syntax Validation – Detects errors like nested blocks (e.g., PROJECT inside DATASET) and missing braces
Auto-save to Local – When you load a file, it saves back to the same location automatically
Full Integration – Seamlessly connects with OktoEngine for validation and training
Perfect for quick edits, syntax testing, and experimenting with OktoScript configurations!
1okto list projects
2okto list models
3okto list datasets
4okto list exports
System diagnostics:
bash
1okto doctor
2# Shows: GPU, CUDA, RAM, Drivers, Disks, Recommendations
Inference Commands
Direct inference (single input/output):
okto infer --model <model_path> --text "<input>"
Example:
okto infer --model models/pizzabot.okm --text "Good evening, I want a pizza"
Automatically respects:
BEHAVIOR block
GUARD block
INFERENCE block
CONTROL block (if defined)
Interactive chat mode:
okto chat --model <model_path>
Opens an interactive loop:
🟢 Okto Chat started (type 'exit' to quit)
You: hi
Bot: Hello! How can I help you?
You: what flavors do you have?
Bot: We have...
You: exit
🔴 Session ended
💡 Note:.okm and .okx formats are optional and optimized for the OktoSeek ecosystem. They provide better integration with OktoSeek Flutter SDK, mobile apps, and exclusive tools. You can always export to standard formats (ONNX, GGUF, SafeTensors) for universal compatibility.
Why use OktoModel (.okm)?
✅ Optimized for OktoSeek Flutter SDK
✅ Better performance on mobile devices
✅ Access to exclusive OktoSeek tools and plugins
✅ Seamless integration with OktoSeek ecosystem
✅ Support for iOS and Android apps
See /examples/ for examples using different export formats.
⚙️ Integration Targets
✅ Flutter - Mobile applications
✅ REST API - Web services
✅ Edge AI - Edge devices
✅ Desktop - Native applications
✅ Web - Browser-based
✅ Mobile - iOS/Android
✅ IoT - Internet of Things
✅ Robotics - Robotic systems
📦 VS Code Extension
Official OktoScript extension for Visual Studio Code is now available!
Syntax Highlighting: Open any .okt file and enjoy beautiful syntax highlighting
Autocomplete: Start typing a block name (e.g., MODEL, TRAIN) and see contextual suggestions
Snippets: Type block names and press Tab to insert complete templates
Validation: Press Ctrl+Shift+P → "OktoScript: Validate current file" (requires OktoEngine)
Web Editor: Press Ctrl+Shift+P → "OktoScript: Open in Web Editor" (requires OktoEngine)
💡 Tip: The VS Code extension works seamlessly with the 🌐 OktoScript Web Editor. Both provide context-aware autocomplete, real-time syntax validation, and full integration with OktoEngine via the okto web command!
📚 Documentation
Complete documentation for OktoScript:
📖 Grammar Specification - Complete formal grammar with all constraints (v1.0 & v1.1)
OktoScript is available for personal and commercial use at no cost.
However, OktoScript is a proprietary language owned by OktoSeek AI and may not be modified or used to create derivative languages, tools or interpreters.
Contributions are welcome! We welcome bug reports, feature suggestions, documentation improvements, and example contributions. Please see CONTRIBUTING.md for guidelines.
Note: OktoScript is a proprietary language owned by OktoSeek AI. While we welcome contributions, you may not create derivative languages, tools, or interpreters based on OktoScript.
📧 Contact
If you have any questions, please raise an issue or contact us at service@oktoseek.com.