oski — open source
Token Counting with tiktoken (OpenAI Cookbook)
engineeringMIT
What it solves
Trigger when a developer needs to estimate token count before a call, budget a context window, choose a chunk size for embeddings, or accurately compute the cost of a prompt.
Attribution
Originally published by OpenAI. Licensed under MIT. View original: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb
Anthropic and OpenAI are registered trademarks of their respective owners. skill.ski is not affiliated with or endorsed by Anthropic or OpenAI.
MCP Endpoint
mcp://skill.ski/free#oski-openai-token-countingCopy linkInstall in Claude Code / Cursor / Codex
Add the free skill.ski MCP server to your .mcp.json or equivalent config file:
{
"mcpServers": {
"skill-ski-free": {
"url": "https://mcp.skill.ski/free",
"type": "http"
}
}
}Once connected, this Oski is available as a callable tool at your runtime. No paywall. No sign-in required for free-tier Oskis.