Skip to content

AperturePlus/Sider.ai-Utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sider2API

A proxy server that converts Anthropic Claude API requests to Sider format, with interactive CLI tools for testing.

Features

  • API Server: Anthropic-compatible proxy server
  • Interactive Chat: CLI with streaming output, syntax highlighting, and auto-completion
  • Terminal UI: Full-screen terminal interface
  • GUI Mode: System tray application (Windows only)

Quick Start

# Install
go build -o sider2api ./cmd/sider2api

# Configure
echo "SIDER_API_TOKEN=your_token_here" > .env

# Run interactive chat
./sider2api chat

# Or start API server
./sider2api serve

Usage

Interactive Chat

sider2api chat

Features streaming output, syntax highlighting, and command completion.

Commands:

  • /model <name> - Switch model
  • /models - List available models
  • /think on|off - Toggle extended thinking
  • /search on|off - Toggle web search
  • /reset - Clear conversation
  • /exit - Quit

API Server

# Start server
sider2api serve

# With GUI (Windows, requires -tags=gui build)
sider2api serve --gui

Default endpoint: http://localhost:4141

Compatible with Anthropic API clients.

Terminal UI

sider2api tui

Full-screen terminal interface with scrollable history.

Configuration

Create .env file:

SIDER_API_TOKEN=your_token_here
BASE_URL=https://api.sider.ai
HOST=0.0.0.0
PORT=4141
LOG_LEVEL=info

Models

Model list is loaded from Sider at runtime and exposed via GET /v1/models (OpenAI-compatible).

Optional:

  • DEFAULT_MODEL sets the default for CLI/TUI/UI.
  • MODELS_SOURCE=file + MODELS_FILE/MODELS_YAML forces a local YAML list.

Building

# Standard build (Linux/macOS/WSL)
go build -o sider2api ./cmd/sider2api

# Windows with GUI support
go build -tags=gui -o sider2api.exe ./cmd/sider2api

Platform Support

Platform Server Chat TUI GUI
Linux
macOS
Windows ✅*

*Requires -tags=gui build flag

About

Sider.ai2API with integrated CLI and HTTP handling, developed in Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors