Skip to content

Instantly share code, notes, and snippets.

View aptdnfapt's full-sized avatar
😸
cat

idcbtw aptdnfapt

😸
cat
View GitHub Profile
@chandika
chandika / FACTORY_PROXY_CC.md
Last active January 8, 2026 15:24 — forked from ben-vargas/FACTORY_CLIProxyAPI_Claude_ChatGPT.md
Factory CLI with Claude Subscription / ChatGPT Codex via CLIProxyAPI

Executive Summary

This guide documents how to use Factory's Droid CLI with your Claude Code Max subscription (OAuth authentication) instead of pay-per-token API keys. The solution leverages CLIProxyAPI as a transparent authentication proxy that converts API key requests from Factory CLI into OAuth-authenticated requests for Anthropic's API.

Architecture Overview

Factory CLI → [Anthropic Format + API Key] → CLIProxyAPI → [Anthropic Format + OAuth] → Anthropic API
                                                  ↓
 (Auth Header Swap)
class ChutesGLMTransformer {
constructor(options = {}) {
this.name = "chutes-glm";
this.endPoint = "/v1/chat/completions";
this.enable = options.enable ?? true;
}
async auth(request, provider) {
return {
body: request,
@SaseQ
SaseQ / config.json
Last active January 1, 2026 19:29
Atlassian Rovo Dev CLI transformer for Claude Code Router
{
"transformers": [
{
"path": "$HOME/.claude-code-router/plugins/rovo-cli.js",
"options": {
"email": "ROVO_DEV_EMAIL",
"api_token": "ROVO_DEV_API_TOKEN"
}
}
],
@olafgeibig
olafgeibig / cc-proxy.sh
Last active December 15, 2025 16:19
A LiteLLM proxy solution to use Claude Code with models from the Weights and Biases inference service. You need to have LiteLLM installed or use the docker container. Easiest is to install it with `uv tool install "litellm[proxy]"` Don't worry about the fallback warnings. Either LiteLLM, W&B or the combo of both are not handling streaming respon…
#!/bin/bash
export WANDB_API_KEY=<your key>
export WANDB_PROJECT=<org/project>
litellm --port 4000 --debug --config cc-proxy.yaml
@dustyfresh
dustyfresh / tshark.md
Last active December 21, 2025 01:50
Systemd service to capture all traffic on ports 53/80/443. tshark will store up to 10MB of data per pcap file, and keep store up to 2GB of captures on disk. Once 2GB disk limit is reached, tshark will rotate older pcaps. Change the filecount in the capture script if you want to store more traffic on disk.

Continuous capture

Tested on Ubuntu 18.04.

Install tshark

You will want to allow non-root users to capture packets. These users must be part of the wireshark group.

$ sudo apt update