[UNTESTED] [Cysharp/AIApiTracer] 3 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,284 characters
Status: [UNTESTED]
Endpoints found:
http://localhost:8080/endpoint/openai/v1/chat/completions
http://localhost:8080/endpoint/x/v1/chat/completions
http://localhost:8080/endpoint/openai-compat/http://localhost:5273/v1/chat/completions
Source: https://github.com/Cysharp/AIApiTracer
# AIApiTracer
A reverse proxy for local development environments that intercepts requests to AI services like OpenAI, Anthropic, Azure OpenAI, and xAI, allowing you to trace request and response content.
Simply put, it's like [Cloudflare AI Gateway Logs](https://developers.cloudflare.com/ai-gateway/observability/logging/) specialized for local development environments. Note that it's not intended for auditing, monitoring, or team usage.


## Features
- Monitor locally without using external services
- Human-readable display of requests and responses
- Support for multiple AI services
- OpenAI
- Anthropic
- Microsoft Azure OpenAI
- xAI
- OpenAI Compatible APIs
- In-memory: No data persistence, retains up to 1000 records
## Quick Start
### 1. Run AIApiTracer
#### Using Docker
Run AIApiTracer using the Docker image (ghcr.io/cysharp/aiapitracer).
```bash
docker run -p 8080:8080 ghcr.io/cysharp/aiapitracer:latest
```
#### Using pre-build binary
You can download and run the pre-built application from the [Releases](https://github.com/Cysharp/AIApiTracer/releases) page.
```bash
./AIApiTracer --urls http://localhost:8080/
```
### 2. Open in your browser
Once started, you can view request traces by accessing `http://localhost:8080` in your web browser.
### 3. Change Various Endpoints to AIApiTracer
#### OpenAI
Specify `http://localhost:8080/endpoint/openai/v1` as the endpoint instead of `https://api.openai.com/v1`.
```bash
curl http://localhost:8080/endpoint/openai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Hello."
}
],
"model": "gpt-4.1-nano"
}'
```
```csharp
var openAIClient = new OpenAIClient(new ApiKeyCredential(apiKey), new OpenAIClientOptions
{
Endpoint = new Uri($"http://localhost:8080/endpoint/openai/v1"),
});
```
#### Anthropic
Specify `