Skip to main content

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

1

Install OpenViking

Install the Python package using pip:
Using uv for faster installation:
2

Verify Installation

Check that OpenViking is installed correctly:

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:
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

1

Create Configuration Directory

2

Create Configuration File

Create ~/.openviking/ov.conf with your model settings:
Replace your-name, your-embedding-api-key, and your-vlm-api-key with your actual values.
3

Set Environment Variable (Optional)

If your config file is not at the default location:

Your First Example

Let’s create a complete example that demonstrates OpenViking’s core features.
1

Create Python Script

Create a file named example.py:
example.py
2

Run the Script

3

Expected Output

You should see output similar to:
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

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

Make sure OpenViking is installed in your current Python environment:
Ensure your config file exists at ~/.openviking/ov.conf or set the OPENVIKING_CONFIG_FILE environment variable:
Verify your API keys are correct in the configuration file. For Volcengine, check ARK Console. For OpenAI, check OpenAI Platform.
Semantic processing time depends on:
  • Resource size and complexity
  • Model API response time
  • Network latency
You can check processing status: