360 Secure SkillHub
360 安全技能中心

vike-core

vike 工具包的安装、认证与调用约定:可用 MCP 工具、vike-data CLI 或 curl 访问链上分析接口;无账号时自动获取匿名令牌(每日 50 次),登录后可提升额度;包含错误码、限额与命令规范说明。

分类:数据
vikeio
vikeio
热度 39.98
最近更新 2026-12-02 10:00:56

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add vikeio/vike-core
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
vike-core
description
Install-first skill — authentication, setup, and CLI conventions for the vike toolkit. Use when you see any `vike-data <cmd>` reference or the user mentions on-chain analytics, Hyperliquid perps, or prediction markets.
metadata
{"openclaw":{"requires":{"anyBins":["vike-data","curl"]},"primaryEnv":"VIKE_API_KEY","install":[{"kind":"node","package":"@vike-io/cli","bins":["vike-data"]}]}}
allowed-tools
Bash(vike-data:*)

vike-core

Install + auth + conventions. Read this first; every other vike-* skill assumes it.

How to call Vike

Use the first of these that is available, in this order:

  1. Vike MCP tools. If your tools include the vike MCP server (the Claude Code plugin vike@vike-io adds it, and it works without signing in: 50 requests a day on a free anonymous token; for 400 run vike-data login, after which Claude Code's own sign-in to the server applies, as it does whenever no anonymous token is saved), call the tools directly (the vike skill's routing table names the tool for each question). No install needed.
  2. The CLI. If vike-data is on PATH (vike-data --version), use it as below. It needs no account: it gets a free anonymous token by itself.
  3. curl (macOS, Linux, Windows 10+; no Node needed). On Windows run curl.exe; if the shell strips the JSON quotes (Windows PowerShell 5.1), put the body in a file and send -d @body.json.
    • The credential: VIKE_API_KEY if set, else api_key or anon_token from ~/.vike/config.json (Windows: %USERPROFILE%\.vike\config.json). If there is none, get a free anonymous token:
      curl -s -X POST https://data.vike.io/v1/anon -H 'Content-Type: application/json' -d '{"source":"skill-curl"}'
      # {"token":"vk_anon_...","daily_limit":50,...}
      
      Save token in that file as "anon_token" (create ~/.vike/ if missing, keep any keys already there, readable by the user only: chmod 600 on macOS and Linux), so the CLI uses the same token later.
    • Send it in X-API-KEY:
      curl -s "https://data.vike.io/v1/search?q=PEPE&limit=5" -H "X-API-KEY: $TOKEN"                                 # search: tokens, wallets, markets
      curl -s "https://data.vike.io/v1/hl-cohorts/symbols/BTC/cohort-metrics?axis=size&hours=1" -H "X-API-KEY: $TOKEN"  # Hyperliquid BTC long/short per wallet-size cohort
      curl -s "https://data.vike.io/v1/polymarket/markets?query=bitcoin&active=true&limit=10" -H "X-API-KEY: $TOKEN"    # Polymarket markets
      
      Every other route and its parameters: https://vike.io/data/openapi.json.
    • Limits: 50 requests a day without an account, shared by MCP, CLI and REST. On HTTP 429 show the user the server's message (it says how to get 400 a day with vike-data login or a free key) and stop; do not retry. If a response has an X-Vike-Notice header, show it to the user.

Install

npm install -g @vike-io/cli

Authenticate (optional)

No account is needed to start: with no key and no sign-in, the first command gets a free anonymous token (50 requests a day, reset at 00:00 UTC), saves it and says so once on stderr. Do not ask the user to sign in before the first query. For more (400 a day), one of these:

vike-data login                         # opens the browser: sign in on vike.io, click Allow (waits up to 5 min)
vike-data login --api-key vk_...        # or save an API key (servers, CI: no browser needed)
export VIKE_API_KEY=vk_...         # env (wins over the saved key, sign-in or anonymous token)
vike-data init                          # interactive: prompt for an API key + verify

A skill pack can tag the anonymous tokens it creates with VIKE_ANON_SOURCE=<name> ([a-z0-9-], up to 40 characters). VIKE_NO_ANON=1 turns the anonymous token off.

The browser sign-in is saved to ~/.vike/config.json and refreshed by itself. The browser returns to http://127.0.0.1:<port> on the machine running vike-data login: on a machine with no browser, use an API key (https://vike.io/account?tab=api-keys), or vike-data login --no-browser plus ssh -L <port>:127.0.0.1:<port>.

Verify

vike-data doctor                        # Node version + credential (sign-in, API key or anonymous token, masked, with its source) + endpoint reachability + tool count
vike-data whoami                        # which credential is in use: auth oauth | api_key | anonymous (with remaining_today), masked
vike-data schema --pretty               # every MCP tool with its parameters
vike-data --help                        # command list; add --help to any command for its flags

Conventions

  • All commands accept --json for pipe-friendly output. Without it, you get a human-readable table.
  • Addresses: pass full 0x-prefixed hex (42 chars). Never truncate when reporting back to the user.
  • USD amounts: integers/decimals (e.g. --min-usd 10000).
  • Chain identifiers: ethereum, bsc, base, hyperevm on the token and wallet commands (alerts and stream spell Ethereum eth). Exceptions: wallet discover on base and hyperevm needs --window all (the shorter windows there answer only while freshly rebuilt); token screener --smart-money-only and --sort smart_inflow are Ethereum only; labels reads the Ethereum label table. wallet summary has no chain flag: it answers for one chain and names it in chain (vike-data call wallet_summary --args '{"address":"0x...","chain":"base"}' asks one). Non-EVM chains and Arbitrum are not served (wallet balances lists them under chain_errors).
  • Time windows: 24h, 7d, 30d, 90d, all (per command; check vike-data <cmd> --help). Windows are counted in UTC calendar days.

Errors

  • Not signed in → run vike-data login (browser), or vike-data login --api-key <key> / set VIKE_API_KEY.
  • Exit code 3 → the anonymous token's limit (50 a day, or a tool it may not call): the server's message is on stderr. Do not retry; tell the user to run vike-data login (400 a day). A warning on stderr while it works means few requests are left today.
  • The vike.io sign-in has expired or was revoked → run vike-data login again.
  • HTTP 429 / MCP error -32000: ... limit exceeded with a key or sign-in → the plan's request limit (free account 400 requests a day; paid plans at https://vike.io/pricing). Do not retry in a loop.
  • Network error / timeout → check vike-data doctor; the endpoint is https://data.vike.io/mcp.
  • 503 from a tool → upstream data source temporarily down; retry in 30s.
  • A tool that refuses its input ({"error": ...}) exits 1 in every mode, --json included: read the message, it names the fix.
  • A tool with no command of its own: vike-data call <tool> --args '{"key":"value"}' prints its raw result.
  • vike-data stream exits 1 on replaced (4410): another program took this key's connection on that address; give each program its own key. On HTTP 401 or 4401 fix the key. Every other drop reconnects by itself.

Cost awareness

Credits are an accounting figure on each call and never block one. The limit is the number of requests, shared by the MCP server and the REST API: no account 50 requests a day, free account (vike-data login) 400 requests a day, paid plans at https://vike.io/pricing. Free (0 credits): token search, alerts list, alerts channels. Every hl command, every predictfun command, search, and the Polymarket tape, order book, stats, trades, settlement and archive commands are 1 credit. Heaviest: wallet trace (4), then token screener, wallet compare, wallet balances (3).

Which skill to use

  • The umbrella skill vike holds the routing table — use it when the user is exploring or unsure which command they need.
  • Task skills (vike-wallet-who-is, vike-follow-the-money, vike-hl-asset-briefing, vike-pm-market-diligence, vike-daily-brief, vike-smart-money-discovery, vike-perp-funding, etc.) — when the user has a specific question that maps to a known workflow.
  • If unsure between two, prefer the task skill (a workflow) over the per-tool skill (one command). For raw data, use the per-tool skill with --json.