cli-contexts
What it does
This skill shows how to manage context settings for AI conversations from the command line. It is for developers tuning how much context a model receives and how sessions are kept.
When to use it
- ✓When a user wants to change how much context an AI conversation keeps.
- ✓When a user wants to check which context pipelines are active.
- ✓When a user wants to view analytics for context engineering.
Skill link
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-contexts/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Show me the active context settings and how much they trim conversations.”
5 new skills a week. 1 minute to read.
How it works
The skill lists commands to show and set context options, such as a token budget and a reserve percentage, manage filter sets, and view analytics for a chosen period.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Overview
Manage context engineering configurations, RTK filter sets, and conversation sessions from the CLI. Apply context-relay settings and inspect active context pipelines.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
context-eng
Example:
omniroute context-eng
context-eng analytics
Flags:
--period <p>
Example:
omniroute context-eng analytics
context-eng caveman
Example:
omniroute context-eng caveman
context-eng config
Example:
omniroute context-eng config
context-eng show
Example:
omniroute context-eng show
context-eng set
Flags:
--aggressiveness <n>--max-shrink-pct <n>--preserve-tags <list>
Example:
omniroute context-eng set
context-eng rtk
Example:
omniroute context-eng rtk
context-eng config
Example:
omniroute context-eng config
context-eng show
Example:
omniroute context-eng show
context-eng set
Flags:
--token-budget <n>--reserve-pct <n>
Example:
omniroute context-eng set
context-eng filters
Example:
omniroute context-eng filters
context-eng list
Example:
omniroute context-eng list
context-eng add
Flags:
--pattern <p>--priority <n>--action <a>
Example:
omniroute context-eng add
context-eng remove <id>
Flags:
--yes
Example:
omniroute context-eng remove <id>
context-eng test
Flags:
--file <path>
Example:
omniroute context-eng test
context-eng raw-output <id>
Example:
omniroute context-eng raw-output <id>
context-eng combos
Example:
omniroute context-eng combos
context-eng list
Example:
omniroute context-eng list
context-eng get <id>
Example:
omniroute context-eng get <id>
context-eng assignments <id>
Example:
omniroute context-eng assignments <id>
contexts
Example:
omniroute contexts
contexts list
List all contexts
Example:
omniroute contexts list
contexts add <name>
Add a new context
Flags:
--url <u>--api-key <k>--api-key-stdin--access-token <t>--access-token-stdin--scope <s>--description <d>
Example:
omniroute contexts add <name>
contexts use <name>
Switch active context
Example:
omniroute contexts use <name>
contexts current
Show the active context (server, auth, scope)
Flags:
--name-only
Example:
omniroute contexts current
contexts show <name>
Show context details
Example:
omniroute contexts show <name>
contexts remove <name>
Remove a context
Flags:
--yes
Example:
omniroute contexts remove <name>
contexts rename <old> <new>
Rename a context
Example:
omniroute contexts rename <old> <new>
contexts export
Export contexts to JSON
Flags:
--out <path>--no-secrets--include-secrets
Example:
omniroute contexts export
contexts import <file>
Import contexts from a JSON file
Flags:
--merge
Example:
omniroute contexts import <file>
contexts migrate
Move legacy plaintext context credentials to the OS keychain
Flags:
--yes
Example:
omniroute contexts migrate
sessions
Example:
omniroute sessions
sessions list
Flags:
--user <u>--kind <k>--active--limit <n>
Example:
omniroute sessions list
sessions show <sessionId>
Example:
omniroute sessions show <sessionId>
sessions expire <sessionId>
Flags:
--yes
Example:
omniroute sessions expire <sessionId>
sessions expire-all
Flags:
--user <u>--yes
Example:
omniroute sessions expire-all
sessions current
Example:
omniroute sessions current
FAQ
What is a token budget?
It is a limit on how many tokens of context the setup allows, and the set command can change it.
Can I see analytics?
Yes. The analytics command accepts a period option.
Can I view settings without changing them?
Yes. The show and config commands display the current settings.
Details
Original description by the author
Manage context engineering configurations, RTK filter sets, and conversation sessions from the CLI. Apply context-relay settings and inspect active context pipelines.
Popularity
- GitHub stars
- 84k
- Ranking position
- #1401
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
cli-a2a
84kRuns the OmniRoute command line for agent-to-agent tasks, letting you send work, check task history and test skills.
cli-backup-sync
84kRuns OmniRoute data backups from the command line, including snapshots, cloud sync, schedules and restores from archives.
cli-batches
84kSubmits batch AI jobs from the command line, tracks their progress and saves results or errors, including for CI pipelines.
cli-chat
84kSends chat requests to AI models from the command line, with streaming replies, system prompts and an interactive session.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.