Prerequisites
Before starting with OpenViking, ensure your environment meets the following requirements:Python 3.10+
Python 3.10 or higher is required
Network Access
Stable connection for dependencies and model services
AI Model Access
VLM and embedding model API credentials
Operating System
Linux, macOS, or Windows
Advanced Requirements (only for building from source):
- Go 1.22+ for AGFS components
- GCC 9+ or Clang 11+ for C++ extensions
Installation
Optional: Rust CLI
For advanced users, OpenViking provides a high-performance Rust CLI:Model Configuration
OpenViking requires two types of models:VLM Model
For image and content understanding
Embedding Model
For vectorization and semantic retrieval
Supported VLM Providers
OpenViking supports three VLM providers:- Volcengine (Doubao)
- OpenAI
- LiteLLM
Recommended - Cost-effective with good performance, free quota for new users.You can also use endpoint IDs:
Get your API key from Volcengine ARK Console
Configuration File
Your First Example
Let’s create a complete example that demonstrates OpenViking’s core features.Congratulations! You’ve successfully:
- Added a resource to OpenViking
- Explored the filesystem structure
- Retrieved hierarchical context (L0/L1 layers)
- Performed semantic search
Key API Operations
Here are the essential operations you’ll use with OpenViking:Resource Management
Filesystem Operations
Hierarchical Context Access
Semantic Search
Session Management
Next Steps
Server Deployment
Learn how to deploy OpenViking as a production HTTP service
API Reference
Explore the complete API documentation
Configuration Guide
Advanced configuration options and model providers
Examples
Browse code examples and integration patterns
Troubleshooting
Import Error: Cannot find module 'openviking'
Import Error: Cannot find module 'openviking'
Make sure OpenViking is installed in your current Python environment:
Configuration file not found
Configuration file not found
Ensure your config file exists at
~/.openviking/ov.conf or set the OPENVIKING_CONFIG_FILE environment variable:API authentication errors
API authentication errors
Verify your API keys are correct in the configuration file. For Volcengine, check ARK Console. For OpenAI, check OpenAI Platform.
Semantic processing takes too long
Semantic processing takes too long
Semantic processing time depends on:
- Resource size and complexity
- Model API response time
- Network latency
