Optix Token Toggle
Update the Optix MCP bearer token in ~/.codex/config.toml by replacing only the value after Bearer in mcp_servers.optix.env.HEADERS, without changing…
Skill by Raulitoflying
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/raulitoflying-optix-token-toggle
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/optix-token-toggle
What's inside
- Skill name
Optix Token Toggle- Description
- Update the Optix MCP bearer token in ~/.codex/config.toml by replacing only the value after Bearer in mcp_servers.optix.env.HEADERS, without changing endpoint, command, args, or other config.
- License
- MIT
- Instructions
- 60 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "Optix Token Toggle" does not match folder "codex-token-toggle"
- body: contains an absolute path from the author's machine
Files (2)
- SKILL.md
- update_optix_token.py
SKILL.md (first lines)
# Optix Token Toggle
Use this skill when the user wants to change the Optix MCP token for Codex.
## Inputs
- `new_token` (required)
- `server_name` (optional, default `optix`)
## Execution
Always use the bundled script instead of ad-hoc shell substitution:
```bash
python3 /Users/rauloptix/OptixHelp/optix-graphql-mcp/skills/codex-token-toggle/update_optix_token.py YOUR_NEW_TOKEN
```
Optional server override:
```bash
python3 /Users/rauloptix/OptixHelp/optix-graphql-mcp/skills/codex-token-toggle/update_optix_token.py YOUR_NEW_TOKEN --server-name optix
```
## Primary target
Update `~/.codex/config.toml` in this block:
```toml
[mcp_servers.optix]
args = ["/Users/rauloptix/OptixHelp/optix-graphql-mcp/dist/index.js"]
command = "node"
enabled = true
[mcp_servers.optix.env]
ALLOW_MUTATIONS = "false"
ENDPOINT = "https://api.optixapp.com/graphql"
HEADERS = '{"Authorization":"Bearer YOUR_NEW_TOKEN"}'
```
## Required behavior
1. Run `update_optix_token.py` with the requested token.
2. Read `~/.codex/config.toml` and locate `[mcp_servers.<server_name>.env]`.
3. Replace only the token after `Bearer ` inside `HEADERS`.
4. Do not change `ENDPOINT`, `ALLOW_MUTATIONS`, `command`, `args`, `enabled`, or any other server block.
5. Re-read the file and verify the updated `HEADERS` line is present.
6. Report masked before/after tokens using first 6 and last 4 characters only.
7. Do not use one-line shell regex replacements unless the bundled script is unavailable.
## Fallback
If the server block is missing from `~/.codex/config.toml`, scan these files for the active Optix MCP config:
- `~/.codex/*.toml`
- `~/.codex/**/config*.toml`
- `~/.codex/**/toggle*.toml`
If multiple candidate files contain conflicting active Optix config, stop and ask which file is authoritative.
## Guardrails
- Do not print the full token in chat.
- Do not modify non-Optix MCP server blocks unless explicitly asked.
- Do not rewrite the whole config if a single token substitution is enough.
- If the user wants the MCP restored after uninstall, recreate the exact block above and only swap `YOUR_NEW_TOKEN`.From Raulitoflying/optix-graphql-mcp, MIT.
More from Raulitoflying/optix-graphql-mcp
- 0.264score
routing-table
Raulitoflying
No description from the publisher yet.
SkillCFreshness: C★ 1Claude Code +9 - 0.264score
nl-debugger
Raulitoflying
No description from the publisher yet.
SkillCFreshness: C★ 1Claude Code +9 - 0.264score
booking-check
Raulitoflying
No description from the publisher yet.
SkillCFreshness: C★ 1Claude Code +9 - 0.264score
wallets-summary
Raulitoflying
No description from the publisher yet.
SkillCFreshness: C★ 1Claude Code +9 - 0.261score
member-lookup
Raulitoflying
No description from the publisher yet.
SkillCFreshness: C★ 1Claude Code +9 - 0.261score
usage-stats
Raulitoflying
No description from the publisher yet.
SkillCFreshness: C★ 1Claude Code +9 - 0.261score
availability
Raulitoflying
No description from the publisher yet.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jul 13, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Cite this page
Optix Token Toggle skill. Agent Mart. https://agentmart.dev/skills/raulitoflying-optix-token-toggle (last updated 2026-10-24)