seekdb-cli

seekdb-cli is a skill for Claude Code, Codex from oceanbase/seekdb-ecology-plugins. It costs 103 tokens per session (4,558 once invoked), scanned B, original, Apache-2.0.

A command-line tool for working with seekdb and OceanBase databases through shell commands. It returns structured JSON and supports both local embedded databases and remote connections.

In plain words
What is it for?
Use it to run SQL, inspect table schemas, study data distributions, infer relationships between tables, and manage vector collections for semantic search.
Why use it?
It lets coding agents inspect and query database data in a consistent format, with safety checks for database operations. This reduces the need to handle database tools manually or parse varied command output.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/oceanbase/seekdb-ecology-plugins/seekdb-cli
Any agent
npx skills add oceanbase/seekdb-ecology-plugins --skill seekdb-cli
Clone the repo
git clone --depth 1 https://github.com/oceanbase/seekdb-ecology-plugins

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for seekdb-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/oceanbase/seekdb-ecology-plugins/seekdb-cli.svg)](https://agentmods.dev/skills/oceanbase/seekdb-ecology-plugins/seekdb-cli)
Your own site
<a href="https://agentmods.dev/skills/oceanbase/seekdb-ecology-plugins/seekdb-cli"><img src="https://agentmods.dev/badge/skills/oceanbase/seekdb-ecology-plugins/seekdb-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,558 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00103 $0.04558
Opus 5 $0.00051 $0.02279
Sonnet 5 $0.00021 $0.00912
Haiku 4.5 $0.00010 $0.00456

Measured 3d ago against content hash e2825fa5ca11, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

seekdb-cli scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install pipx && pipx ensurepath
agent-skills/skills/seekdb-cli/SKILL.md · 505 lines

How it starts

The opening of the file, as written. The whole thing — 505 lines — stays where its author put it; the contents beside it link to each section on GitHub.

seekdb-cli — AI-Agent Database CLI

A command-line client designed for AI Agents. All output is JSON-structured, stateless, with built-in safety guardrails.

Prerequisites

Check if seekdb-cli is installed (either command works—they share the same entry point):

seekdb --version
# or, aligned with PyPI package name / for `which`-style checks:
seekdb-cli --version

If not installed, choose the method that matches your environment:

Recommended — pipx (works globally without polluting system Python):

# Install pipx first if needed (Ubuntu/Debian)
sudo apt install pipx && pipx ensurepath
# Then install seekdb-cli
pipx install seekdb-cli

Alternative — pip (when inside a project venv or on systems without PEP 668):

pip install seekdb-cli

Note for Ubuntu 23.04+ / Debian 12+: Direct pip install at the system level is blocked by PEP 668. Use pipx instead — it creates an isolated environment while keeping seekdb and seekdb-cli on your PATH (same program).

Throughout this skill, examples use seekdb; you may substitute seekdb-cli everywhere.

Embedded vs remote: The default local store uses embedded mode (pyseekdb). That requires Linux (glibc ≥ 2.28) or macOS 15+; on other OSes, connect with a remote DSN: seekdb --dsn "seekdb://user:pass@host:port/db" ....

Connection

DSN resolution (highest priority wins):

  1. --dsn on the CLI (must appear before the subcommand)
  2. SEEKDB_DSN environment variable
  3. .env in the current working directory (SEEKDB_DSN=... line)
  4. ~/.seekdb/config.env
  5. Default embedded:~/.seekdb/seekdb.db

With no config, the default embedded path applies — you can run commands directly. If the user gives a specific DSN, pass it with --dsn:

# Remote mode
seekdb --dsn "seekdb://user:pass@host:port/db" schema tables

# Remote with TLS (query string on the URL; encode special characters in user/password)
# tls=skip-verify — encrypted, no certificate verification (common for self-signed servers)
seekdb --dsn "seekdb://user:pass@host:2881/db?tls=skip-verify" status
# tls=required — encrypted with default OS CA verification
seekdb --dsn "seekdb://user:pass@host:2881/db?tls=required" sql "SELECT 1"

# Embedded mode (path is a data directory, created if missing; not a single SQLite file)
seekdb --dsn "embedded:./seekdb.db" status
seekdb --dsn "embedded:~/.seekdb/seekdb.db?database=mydb" sql "SELECT 1"

Read the full file on GitHub · 505 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 505 lines · 103 tokens per session scan B e2825fa5ca11

Subscribe to this mod's changes

seekdb-cli is a skill published in the GitHub repository oceanbase/seekdb-ecology-plugins (9 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 103 tokens to every session and 4,558 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

alloydb-basics

Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations. Use when creating, configuring, or administering AlloyDB databases. Do NOT use for general PostgreSQL instances (e.g. Cloud SQL) or other GCP databases.

google/skills · 72 tokens

cognee-community

Use when the user needs something that ships outside cognee core — community database adapters (Qdrant, Milvus, Weaviate, Redis, Pinecone, FalkorDB, Memgraph, DuckDB, NetworkX, …), data-source connectors (Slack, Gmail, Notion, Confluence, Google Drive), custom tasks/pipelines/retrievers (Exa, ScrapeGraph, codify)…

topoteretes/cognee · 106 tokens

lineage-diff

Compare column-level lineage between two versions of a SQL query to show added, removed, and changed data flow edges.

AltimateAI/altimate-code · 28 tokens

django-migrations

Django migration patterns and safety workflow for PostHog. Use when creating, adjusting, or reviewing Django/Postgres migrations, including non-blocking index/constraint changes, multi-phase schema changes, data backfills, migration conflict rebasing, and product model moves that require SeparateDatabaseAndState. Also…

PostHog/posthog · 99 tokens

digoal

Portable digital employee distilled from digoal's personal blog for PostgreSQL, PolarDB, DuckDB, AI+database, vector/RAG, database operations, source-code reading, technical content creation, open-source community strategy, and "德说" style strategic analysis. Use when asked to answer as 德哥/digoal, mine a local…

digoal/blog · 151 tokens