LogoClawIndex
CasesSkillsAbout
LogoClawIndex

openrouter-context-optimization - Optimize OpenRouter Context Window Usage

Optimize context window usage for OpenRouter models to reduce cost and manage long conversations.

Tags

Updated: 2026-03-23
saasopenrouteroptimizationcontext-windowtoken-management

Capabilities

query context limitsestimate tokensselect modeltrim conversation

Typical Inputs

OpenRouter API keymodel IDconversation messages

Typical Outputs

context limit datatoken countselected model ID

What this skill does

  • query context limits
  • estimate tokens
  • select model
  • trim conversation
  • chunk document
  • process document
  • cache prompt
  • monitor tokens

Inputs

  • OpenRouter API key
  • model ID
  • conversation messages
  • document text
  • question

Outputs

  • context limit data
  • token count
  • selected model ID
  • trimmed conversation
  • document chunks
  • analysis result
  • synthesized response

Requirements

  • OpenRouter API access
  • OpenAI-compatible client
  • Python environment
  • internet connection

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.