clean up
This commit is contained in:
parent
4675fee4a3
commit
cc6e1d80bf
3 changed files with 4 additions and 60 deletions
15
Makefile
15
Makefile
|
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: all build run clean install dev test test-proxy test-coverage
|
.PHONY: all build run clean install dev
|
||||||
|
|
||||||
# Default target
|
# Default target
|
||||||
all: install build
|
all: install build
|
||||||
|
|
@ -43,19 +43,6 @@ clean:
|
||||||
rm -f requests.db
|
rm -f requests.db
|
||||||
rm -rf requests/
|
rm -rf requests/
|
||||||
|
|
||||||
# Testing
|
|
||||||
test: test-proxy
|
|
||||||
|
|
||||||
test-proxy:
|
|
||||||
@echo "🧪 Running proxy tests..."
|
|
||||||
cd proxy && go test -v ./...
|
|
||||||
|
|
||||||
test-coverage:
|
|
||||||
@echo "📊 Running tests with coverage..."
|
|
||||||
cd proxy && go test -v -coverprofile=coverage.out ./...
|
|
||||||
cd proxy && go tool cover -html=coverage.out -o coverage.html
|
|
||||||
@echo "📊 Coverage report generated: proxy/coverage.html"
|
|
||||||
|
|
||||||
# Database operations
|
# Database operations
|
||||||
db-reset:
|
db-reset:
|
||||||
@echo "🗑️ Resetting database..."
|
@echo "🗑️ Resetting database..."
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
A transparent proxy for Claude Code that monitors API requests, routes agents to different LLM providers, and provides a beautiful dashboard for analyzing conversations.
|
A transparent proxy for capturing and visualizing in-flight Claude Code requests and conversations, with optional agent routing to different LLM providers.
|
||||||
|
|
||||||
## What It Does
|
## What It Does
|
||||||
|
|
||||||
Claude Code Proxy serves three main purposes:
|
Claude Code Proxy serves three main purposes:
|
||||||
|
|
||||||
1. **Claude Code Proxy**: Intercepts and monitors requests from Claude Code (claude.ai/code) to the Anthropic API, allowing you to see what Claude Code is doing in real-time
|
1. **Claude Code Proxy**: Intercepts and monitors requests from Claude Code (claude.ai/code) to the Anthropic API, allowing you to see what Claude Code is doing in real-time
|
||||||
2. **Agent Routing (Optional)**: Routes specific Claude Code agents to different LLM providers (e.g., route code-reviewer agent to GPT-4o)
|
2. **Conversation Viewer**: Displays and analyzes your Claude API conversations with a beautiful web interface
|
||||||
3. **Conversation Viewer**: Displays and analyzes your Claude API conversations with a beautiful web interface
|
3. **Agent Routing (Optional)**: Routes specific Claude Code agents to different LLM providers (e.g., route code-reviewer agent to GPT-4o)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|
|
||||||
43
config.yaml
43
config.yaml
|
|
@ -1,43 +0,0 @@
|
||||||
# LLM Proxy Configuration
|
|
||||||
# This file configures the LLM proxy server and its integrations
|
|
||||||
|
|
||||||
# Server configuration
|
|
||||||
server:
|
|
||||||
port: 3001
|
|
||||||
timeouts:
|
|
||||||
read: 10m # Read timeout (default: 10 minutes)
|
|
||||||
write: 10m # Write timeout (default: 10 minutes)
|
|
||||||
idle: 10m # Idle timeout (default: 10 minutes)
|
|
||||||
|
|
||||||
# Provider configurations
|
|
||||||
providers:
|
|
||||||
# Anthropic Claude configuration
|
|
||||||
anthropic:
|
|
||||||
base_url: "https://api.anthropic.com"
|
|
||||||
version: "2023-06-01"
|
|
||||||
max_retries: 3
|
|
||||||
|
|
||||||
# OpenAI configuration
|
|
||||||
openai:
|
|
||||||
# API key can be set here or via OPENAI_API_KEY environment variable
|
|
||||||
# api_key: "your-api-key-here"
|
|
||||||
# base_url: ""
|
|
||||||
|
|
||||||
# Storage configuration
|
|
||||||
storage:
|
|
||||||
# SQLite database path for storing request history
|
|
||||||
db_path: "requests.db"
|
|
||||||
|
|
||||||
# Subagent Configuration (Optional)
|
|
||||||
# Enable this feature if you want to route specific Claude Code agents to different LLM providers
|
|
||||||
# For subaget setup instructions, see: https://docs.anthropic.com/en/docs/claude-code/sub-agents
|
|
||||||
subagents:
|
|
||||||
# Enable subagent routing
|
|
||||||
enable: false
|
|
||||||
|
|
||||||
# Maps subagent types to specific models
|
|
||||||
mappings:
|
|
||||||
streaming-systems-engineer: "gpt-4o"
|
|
||||||
codebase-analyzer: "gpt-4o"
|
|
||||||
# Add more subagent mappings as needed
|
|
||||||
# example-agent: "gpt-4o"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue