In ~/.pi/agent/models.json, models are defined with explicit contextWindow and maxTokens fields, plus a modelOverrides block for the github-copilot provider:
"modelOverrides": {
"claude-opus-4.6": {
"contextWindow": 192000,| { | |
| "diffMode": "github", | |
| "ideExtensionPromptedAt": {}, | |
| "ideActivationNudgedForVersion": {}, | |
| "enableCompletionBell": true, | |
| "completionSound": "fx-ok01", | |
| "awaitingInputSound": "fx-ack01", | |
| "soundFocusMode": "always", | |
| "commandAllowlist": [ | |
| "ls", |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| exec env RESTART_GATEWAY=1 /Users/clawd/clawd/scripts/patch-openclaw-codex-fast.sh "$@" |
In ~/.pi/agent/models.json, models are defined with explicit contextWindow and maxTokens fields, plus a modelOverrides block for the github-copilot provider:
"modelOverrides": {
"claude-opus-4.6": {
"contextWindow": 192000,| #!/usr/bin/env node | |
| // Minimal REST call to the Codex backend API using a local OAuth token. | |
| import fs from "fs"; | |
| import os from "os"; | |
| import path from "path"; | |
| const authFile = process.env.CODEX_AUTH_FILE || path.join(os.homedir(), ".codex", "auth.json"); | |
| const auth = JSON.parse(fs.readFileSync(authFile, "utf8")); | |
| const token = auth.access_token || auth.tokens?.access_token; |
Unified usage tracking across all AI coding assistants
Goal: Create a new @ccusage/omni package that aggregates usage data from all existing ccusage CLI tools into a single, unified view.
Supported Sources (v1): | Source | Package | Data Directory | Env Override |
| #!/bin/bash | |
| # AI CLI tools wrapper for scheduled activation of usage windows | |
| # Outputs JSON for machine-readable logs with human-friendly summaries | |
| # ============================================================================ | |
| # CONFIGURATION - Update these values for your environment | |
| # ============================================================================ | |
| # System paths | |
| USER_HOME="/home/code" |
| { | |
| "custom_models": [ | |
| { | |
| "model_display_name": "Claude Opus 4.5 Thinking Low [Proxy]", | |
| "model": "claude-opus-4-5-20251101(low)", | |
| "base_url": "http://localhost:8317", | |
| "api_key": "dummy-not-used", | |
| "provider": "anthropic" | |
| }, | |
| { |
| { | |
| "custom_models": [ | |
| { | |
| "model_display_name": "Claude Opus 4.5 [Proxy]", | |
| "model": "claude-opus-4-5-20251101", | |
| "base_url": "http://localhost:8317", | |
| "api_key": "dummy-not-used", | |
| "provider": "anthropic" | |
| }, | |
| { |