
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@contextium/cli
Advanced tools
Command-line tool for managing Contextium documentation, agents, skills, and workflows — pipe context to AI coding assistants
Command-line tool for managing Contextium — your team's AI knowledge store. Create and manage context libraries, agents, skills, workflows, and tags from the terminal. Pipe your team's documentation directly into Claude, Cursor, Copilot, and any other AI coding assistant.
Contextium is a central file system for team knowledge that AI assistants can read directly. Use it to store:
The CLI lets you manage all of this from your terminal and pipe content into any AI workflow.
npm install -g @contextium/cli
Or run without installing:
npx @contextium/cli --help
# 1. Authenticate
contextium login
# 2. See your workspaces
contextium workspaces
# 3. List context libraries
contextium libraries -w my-workspace
# 4. Pull all content into your clipboard (pipe to Claude, Cursor, etc.)
contextium cat --all -w my-workspace | pbcopy
# 5. Find a specific file
contextium find "authentication" -w my-workspace
The CLI pairs with the Contextium MCP server so Claude and Cursor can read your workspace automatically.
Quickest setup:
contextium setup-claude
This writes the MCP config to ~/Library/Application Support/Claude/claude_desktop_config.json for you. Restart Claude Desktop and your team's docs are live in Claude.
Or connect via the hosted remote MCP (no local install needed):
{
"mcpServers": {
"contextium": {
"type": "sse",
"url": "https://mcp.contextium.io/sse"
}
}
}
contextium login # Authenticate with your Contextium account
contextium logout # Sign out
contextium whoami # Show current user and workspace
contextium setup # Guided interactive setup
contextium init # Initialise Contextium in current project
contextium setup-claude # Auto-write Claude Desktop MCP config
contextium workspaces # List workspaces
contextium libraries -w <workspace> # List context libraries
contextium create-library -w <workspace> -n "Docs" # Create a library
contextium update-library <libraryId> -n "New Name" # Rename a library
# List and browse
contextium files <library> -w <workspace> # List files in a library
contextium structure <library> -w <workspace> # Show folder tree
contextium cat <fileId> -w <workspace> # Read a file
contextium cat --all -w <workspace> # Dump all files (pipe to AI)
# Create and edit
contextium new <library> -t "Title" -p path.md -w <workspace> # Create file
contextium edit <fileId> -c "Updated content" -m "summary" # Update file
contextium delete <fileId> --confirm # Delete (trash)
# Version history
contextium versions <fileId>
# Sync local cache
contextium sync -w <workspace>
contextium status -w <workspace>
contextium search "authentication flow" -w <workspace> # Full-text search
contextium find "api" -w <workspace> # Find files by name/content
Tags are flat and untyped — a tag is just a #value (no categories, no type:value format). A file is tagged by typing #value inside its content; the tag is reconciled when the file is saved.
# Read-only — tags are content-driven, so there are no create/update/delete commands
contextium tags list -w <workspace>
contextium tags search -w <workspace> --tags authentication
contextium tags file-tags -w <workspace> --file <fileId>
To tag a file, author the tag inline — add a #authentication token to the file's content (e.g. contextium edit-file <id> --content "… #authentication"); the tag is created on save. To untag, remove the token. There are no tags create, tags update, or tags delete commands, and tags apply/apply-bulk/remove are deprecated — tagging is entirely inline.
# Agents — AI assistants with defined roles
contextium agents list -w <workspace>
contextium agents create -w <workspace> -n "Code Reviewer"
contextium agents update -w <workspace> --agent <agentId> --name "Reviewer"
contextium agents add-skill -w <workspace> --agent <agentId> --skill <skillId>
contextium agents remove-skill -w <workspace> --agent <agentId> --skill <skillId>
# Skills — reusable knowledge blocks
contextium skills list -w <workspace>
contextium skills create -w <workspace> -n "API Patterns"
Errors and their fixes, stored once per workspace so any project can reuse them — not per-project, so a lesson survives the project that produced it being deleted.
# Record a lesson (-p tags it to a project; omit for a general one)
contextium lessons add -w <workspace> \
-t "Redis delete-then-set race resurrected deleted libraries" \
--problem "Delete and set raced; the set repopulated the cache post-delete" \
--fix "Versioned cache keys — bumpVersion on mutation" \
-p "Contextium"
# Read them back — every project's lessons by default
contextium lessons list -w <workspace>
# Narrow to one project
contextium lessons list -w <workspace> -p "Contextium"
contextium workflows list -w <workspace>
contextium workflows create -w <workspace> -n "Backend Task"
contextium workflows update -w <workspace> --id <workflowId> --name "Backend Delivery"
# Load a workflow — returns all associated agents, skills, and files
contextium workflow "Backend Task" -w <workspace>
contextium marketplace list # Browse all listings
contextium marketplace list --type skill --category backend # Filter
contextium marketplace show code-review-assistant # View details
contextium marketplace install code-review-assistant -w <workspace> # Install
| Flag | Description |
|---|---|
-w, --workspace <name|slug|id> | Workspace selector |
-h, --help | Show command help |
-V, --version | Show CLI version |
Run contextium <command> --help for command-specific options.
# Get all docs and copy to clipboard
contextium cat --all -w my-workspace | pbcopy
# Get just a specific library
contextium cat --all -w my-workspace -l coding-standards | pbcopy
# Search and pipe results
contextium search "deployment process" -w my-workspace
# Authenticate
contextium login
# See what's available
contextium workspaces
contextium libraries -w acme-corp
# Load the onboarding workflow
contextium workflow "Onboarding" -w acme-corp
# Tag a file by adding #authentication inside its content, then save —
# the tag is created and reconciled from the file content automatically.
contextium edit-file <fileId> --content "… #authentication"
# Find all authentication files
contextium tags search -w my-workspace --tags authentication
MIT © Contextium
FAQs
Command-line tool for managing Contextium documentation, agents, skills, and workflows — pipe context to AI coding assistants
The npm package @contextium/cli receives a total of 538 weekly downloads. As such, @contextium/cli popularity was classified as not popular.
We found that @contextium/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.