Skip to content

Instantly share code, notes, and snippets.

View timcol's full-sized avatar

Tim Collins timcol

View GitHub Profile
@timcol
timcol / anthropic_oauth.py
Created June 21, 2025 08:44 — forked from changjonathanc/anthropic_oauth.py
Anthropic OAuth CLI - Simplified Claude Code spoof demo
#!/usr/bin/env python3
import argparse
import base64
import hashlib
import json
import os
import secrets
import sys
import time
from fastmcp import FastMCP
import json
import os
import sqlite3
from fsrs import Card, Scheduler, Rating, State
from datetime import datetime, timezone
import sys
DB_FILE = "/data/flashcards.db"
scheduler = Scheduler()