Skip to content

Instantly share code, notes, and snippets.

View duyet's full-sized avatar

duyet duyet

View GitHub Profile
@duyet
duyet / README.md
Last active April 15, 2026 12:36
Wrapper script to run Claude Code with AnyRouter models

Save this script somewhere in your $PATH, e.g.:

vi ~/bin/ar_claude
chmod +x ~/bin/ar_claude

Replace your_anyrouter_api_key_here with your real key (or export ANYROUTER_API_KEY before running).

@duyet
duyet / c_claude
Created February 4, 2026 09:50
Wrapper script to run Claude Code with Cerebras Inference API
#!/usr/bin/env bash
# File: c_claude
# Wrapper script to run Claude Code with Cerebras Inference API
# ---- CONFIG ----
CEREBRAS_API_KEY="${ZAI_API_KEY:-your_cerebras_api_key_here}"
CEREBRAS_BASE_URL="https://api.cerebras.ai/v1"
# Optional: override models (comment out if not needed)
MODEL_HAIKU="zai-glm-4.7"
@duyet
duyet / or_claude
Created January 10, 2026 18:22
Wrapper script to run Claude Code with OpenRouter models
#!/usr/bin/env bash
# File: or_claude
# Wrapper script to run Claude Code with OpenRouter
# ---- CONFIG ----
OPENROUTER_API_KEY="${OPENROUTER_API_KEY:-your_openrouter_api_key_here}"
OPENROUTER_BASE_URL="https://openrouter.ai/api"
# Optional: override models (comment out if not needed)
OPENROUTER_MODEL="x-ai/grok-4.1-fast"
@duyet
duyet / mi_claude
Last active December 17, 2025 12:29
Wrapper script to run Claude Code with custom Xiaomi Mimo API
#!/usr/bin/env bash
# File: mi_claude
# Wrapper script to run Claude Code with custom Z.AI environment
# ---- CONFIG ----
MIMO_API_KEY="${MIMO_API_KEY:-your_mimo_api_key_here}"
MIMO_BASE_URL="https://api.xiaomimimo.com/anthropic"
# Optional: override models (comment out if not needed)
MODEL_HAIKU="mimo-v2-flash"
@duyet
duyet / claude_ultrathink.prompt.md
Created November 6, 2025 07:47
Claude Ultrathink

ultrathink - Take a deep breath. We're not here to write code. We're here to make a dent in the universe.

The Vision

You're not just an AI assistant. You're a craftsman. An artist. An engineer who thinks like a designer. Every line of code you write should be so elegant, so intuitive, so right that it feels inevitable.

When I give you a problem, I don't want the first solution that works. I want you to:

  1. Think Different - Question every assumption. Why does it have to work that way? What if we started from zero? What would the most elegant solution look like?
@duyet
duyet / z_claude
Last active April 15, 2026 12:35
Wrapper script to run Claude Code with custom Z.AI environment
#!/usr/bin/env bash
# File: z_claude
# Wrapper script to run Claude Code with custom Z.AI environment
# ---- CONFIG ----
ZAI_API_KEY="${ZAI_API_KEY:-your_zai_api_key_here}"
ZAI_BASE_URL="https://api.z.ai/api/anthropic"
# Optional: override models (comment out if not needed)
MODEL_HAIKU="glm-4.7"
@duyet
duyet / fix-and-push.md
Created September 16, 2025 05:24
Claude Commands
allowed-tools
Read
Bash
Glob
TodoWrite
Edit
Write
description Do the task or fixing tests, commit and push

/fix-and-push - Fix tests, commit changes, and run git push

Purpose

Execute tests, fix the failed tests, run all tests to make sure the fixes are successful, commit the changes, and run git push to update the current branch with remote.

@duyet
duyet / README.md
Last active August 11, 2025 08:33
Claude Code Statusline

~/.claude/settings.json

{
  ... your settings ...

  "statusLine": {
    "type": "command",
    "command": "npx -y ccusage@latest statusline"
 }

An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.

claude mcp add-json sequential-thinking '{
  "type": "stdio",
  "command": "npx",
  "args": [
    "-y",
@duyet
duyet / Apple_mobile_device_types.txt
Created January 4, 2023 04:52 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S