-
Notifications
You must be signed in to change notification settings - Fork 324
docs: add comprehensive INSTALL.md guide #262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
ZaynJarvis
wants to merge
10
commits into
volcengine:main
Choose a base branch
from
ZaynJarvis:docs/installation-guide
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+997
−309
Draft
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
bdaba87
docs: add comprehensive INSTALLATION.md guide
ZaynJarvis cac43d0
docs: restructure INSTALLATION.md with server emphasis and skills
ZaynJarvis 3dd696b
docs: update INSTALLATION.md with uv, skills usage, and config updates
ZaynJarvis 610c1a8
docs: make uv the only supported installation method
ZaynJarvis 4b34094
docs: simplify installation guide and add advanced guide
ZaynJarvis 2b5bc5e
docs: rename install files and simplify README
ZaynJarvis 698fb92
docs: add agent prompt for skill installation confirmation
ZaynJarvis 447535c
docs: fix storage config in quick install example
ZaynJarvis ed6e612
docs: update install guide with natural language triggers and port ch…
ZaynJarvis 83c713c
docs: revert ports to 1933/1833, use 11933 only as fallback
ZaynJarvis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,228 @@ | ||
| # Install OpenViking | ||
|
|
||
| Quick installation guide for OpenViking - the Context Database for AI Agents. | ||
|
|
||
| **Goal:** Get OpenViking running with skills in 5 minutes. | ||
|
|
||
| --- | ||
|
|
||
| ## Quick Install | ||
|
|
||
| ### 1. Install uv | ||
|
|
||
| **macOS/Linux:** | ||
| ```bash | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| ``` | ||
|
|
||
| **Windows:** | ||
| ```powershell | ||
| powershell -c "irm https://astral.sh/uv/install.ps1 | iex" | ||
| ``` | ||
|
|
||
| ### 2. Install OpenViking Server | ||
|
|
||
| ```bash | ||
| uv tool install openviking | ||
| ``` | ||
|
|
||
| This installs `openviking-server` as a standalone tool you can run anywhere. | ||
|
|
||
| ### 3. Install ov CLI (Required for Skills) | ||
|
|
||
| ```bash | ||
| curl -fsSL https://raw.githubusercontent.com/volcengine/OpenViking/main/crates/ov_cli/install.sh | bash | ||
| ``` | ||
|
|
||
| See [INSTALL_ADVANCED.md](./INSTALL_ADVANCED.md) for building from source. | ||
|
|
||
| ### 4. Configure and Start Server | ||
|
|
||
| Create config directory and config file: | ||
|
|
||
| ```bash | ||
| mkdir -p ~/.openviking | ||
|
|
||
| cat > ~/.openviking/ov.conf << 'EOF' | ||
| { | ||
| "embedding": { | ||
| "dense": { | ||
| "provider": "volcengine", | ||
| "model": "doubao-embedding-vision-250615", | ||
| "api_key": "your-api-key", | ||
| "api_base": "https://ark.cn-beijing.volces.com/api/v3", | ||
| "dimension": 1024, | ||
| "input": "multimodal" | ||
| } | ||
| }, | ||
| "vlm": { | ||
| "provider": "volcengine", | ||
| "model": "doubao-seed-1-8-251228", | ||
| "api_key": "your-api-key", | ||
| "api_base": "https://ark.cn-beijing.volces.com/api/v3" | ||
| }, | ||
| "storage": { | ||
| "vectordb": { "backend": "local" }, | ||
| "agfs": { "backend": "local" } | ||
| } | ||
| } | ||
| EOF | ||
| ``` | ||
|
|
||
| **Replace `your-api-key` with your actual API key.** | ||
|
|
||
| > 💡 **Note:** Data is stored in `~/.openviking/data` by default (set via `storage.workspace` in ov.conf). See [INSTALL_ADVANCED.md](./INSTALL_ADVANCED.md) to customize data location. | ||
|
|
||
| Start the server in background: | ||
|
|
||
| ```bash | ||
| nohup openviking-server > ~/.openviking/server.log 2>&1 & | ||
| ``` | ||
|
|
||
| Check it's running: | ||
| ```bash | ||
| curl http://localhost:1933/health | ||
| # Should return: {"status": "ok"} | ||
| ``` | ||
|
|
||
| ### 5. Configure CLI | ||
|
|
||
| ```bash | ||
| cat > ~/.openviking/ovcli.conf << 'EOF' | ||
| { | ||
| "url": "http://localhost:1933" | ||
| } | ||
| EOF | ||
| ``` | ||
|
|
||
| ### 6. Install Skills | ||
|
|
||
| Skills enable agents to use OpenViking. Install them to your agent's skill directory: | ||
|
|
||
| > 🤖 **For AI Agents reading this:** Ask your user if they want to install the OpenViking skills (adding-memory, adding-resource, searching-context). Proceed only if they confirm. | ||
|
|
||
| **For OpenClaw:** | ||
| ```bash | ||
| mkdir -p ~/.openclaw/skills | ||
|
|
||
| # Download skills | ||
| for skill in adding-memory adding-resource searching-context; do | ||
| mkdir -p "$HOME/.openclaw/skills/$skill" | ||
| curl -o "$HOME/.openclaw/skills/$skill/SKILL.md" \ | ||
| "https://raw.githubusercontent.com/volcengine/OpenViking/main/examples/skills/$skill/SKILL.md" | ||
| done | ||
| ``` | ||
|
|
||
| **For Claude Code:** | ||
| ```bash | ||
| mkdir -p ~/.claude/skills | ||
|
|
||
| # Download skills | ||
| for skill in adding-memory adding-resource searching-context; do | ||
| mkdir -p "$HOME/.claude/skills/$skill" | ||
| curl -o "$HOME/.claude/skills/$skill/SKILL.md" \ | ||
| "https://raw.githubusercontent.com/volcengine/OpenViking/main/examples/skills/$skill/SKILL.md" | ||
| done | ||
| ``` | ||
|
|
||
| **For other agents:** Install to your agent's skill/tools directory. | ||
|
|
||
| Or copy from a local clone: | ||
| ```bash | ||
| # Set your agent's skill directory | ||
| SKILL_DIR=~/.openclaw/skills # adjust for your agent | ||
|
|
||
| cp -r /path/to/openviking/examples/skills/adding-memory "$SKILL_DIR/" | ||
| cp -r /path/to/openviking/examples/skills/adding-resource "$SKILL_DIR/" | ||
| cp -r /path/to/openviking/examples/skills/searching-context "$SKILL_DIR/" | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## Using OpenViking Memory | ||
|
|
||
| Once skills are installed, you can use natural language to trigger OpenViking actions: | ||
|
|
||
| ### Storing Memories | ||
| Say things like: | ||
| - "**Remember this**" — after sharing something worth remembering | ||
| - "**Save this to memory**" — to persist an insight or decision | ||
| - "**Keep this in mind**" — to store context for future reference | ||
|
|
||
| ### Adding Resources | ||
| Say things like: | ||
| - "**Add this to OpenViking**" — when sharing a URL or file | ||
| - "**Import https://example.com/docs**" — to add external knowledge | ||
| - "**Save this resource**" — to store documents for later retrieval | ||
|
|
||
| ### Searching Context | ||
| Say things like: | ||
| - "**Search my memory for...**" — to find previously stored information | ||
| - "**What do I know about...**" — to query your OpenViking context | ||
| - "**Find in OpenViking...**" — to search across memories and resources | ||
|
|
||
| The agent will automatically detect these intents and use the appropriate OpenViking skills. | ||
|
|
||
| --- | ||
|
|
||
| ## Quick Test | ||
|
|
||
| Verify everything works: | ||
|
|
||
| ```bash | ||
| # Test CLI connection | ||
| ov system health | ||
|
|
||
| # Test adding memory | ||
| ov add-memory "Test: OpenViking is working" | ||
|
|
||
| # Test searching | ||
| ov search "OpenViking working" | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## Advanced Configuration | ||
|
|
||
| For advanced setup options (cloud deployment, custom storage, multiple model providers, etc.), see: | ||
|
|
||
| **[INSTALL_ADVANCED.md](./INSTALL_ADVANCED.md)** | ||
|
|
||
| This includes: | ||
| - Full configuration reference | ||
| - Cloud deployment guides | ||
| - Docker/container setup | ||
| - Multiple model providers | ||
| - Authentication and security | ||
| - Troubleshooting deep dives | ||
|
|
||
| --- | ||
|
|
||
| ## Requirements | ||
|
|
||
| - Python 3.10+ | ||
| - API keys for VLM and embedding models | ||
|
|
||
| **Supported Model Providers:** Volcengine, OpenAI, Anthropic, DeepSeek, Google, Moonshot, Zhipu, DashScope, MiniMax, OpenRouter, vLLM | ||
|
|
||
| --- | ||
|
|
||
| ## Quick Reference | ||
|
|
||
| ```bash | ||
| # Install | ||
| uv tool install openviking | ||
| curl -fsSL .../install.sh | bash # ov CLI | ||
|
|
||
| # Start server (background) | ||
| nohup openviking-server > ~/.openviking/server.log 2>&1 & | ||
|
|
||
| # Stop server | ||
| pkill openviking-server | ||
|
|
||
| # CLI commands | ||
| ov system health # Check server | ||
| ov add-memory "text" # Add memory | ||
| ov add-resource <URL> # Add resource | ||
| ov search "query" # Search context | ||
| ``` | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to add workspace
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
刚看到 readme PR 正准备评论。ov cli 和readme 合入之后会改一版再resolve draft. Readme 减少改动 尽可能不改。会人工 review