Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ TELEGRAM_BOT_USERNAME=your_bot_username
# Base directory for project access (absolute path)
APPROVED_DIRECTORY=/path/to/your/projects

# Multiple approved directories (optional, comma-separated absolute paths)
# When set, projects can be located in any of these directories
# Example: APPROVED_DIRECTORIES=/path/to/projects1,/path/to/projects2,/home/user/workspace
APPROVED_DIRECTORIES=

# === SECURITY SETTINGS ===
# Comma-separated list of allowed Telegram user IDs (optional)
# Leave empty to allow all users (not recommended for production)
Expand Down Expand Up @@ -63,6 +68,19 @@ USE_SDK=true
# Get your API key from: https://console.anthropic.com/
ANTHROPIC_API_KEY=

# Custom base URL for Anthropic API (optional, for proxy/enterprise endpoints)
# Example: https://your-proxy.example.com/v1
ANTHROPIC_BASE_URL=

# Available Claude models for user selection (comma-separated)
# Users can switch models in-session with /model command
# Supports both full names and short aliases:
# Full names: claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5
# Short aliases: opus, sonnet, haiku, cc-opus, cc-sonnet, cc-haiku
# Useful for enterprise/proxy endpoints with custom naming schemes
# Example: ANTHROPIC_MODELS=cc-opus,cc-sonnet,cc-haiku
ANTHROPIC_MODELS=

# Path to Claude CLI executable (optional - will auto-detect if not specified)
# Example: /usr/local/bin/claude or ~/.nvm/versions/node/v20.19.2/bin/claude
CLAUDE_CLI_PATH=
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,5 @@ data/
sessions/
backups/
uploads/
config/mcp.json
config/mcp.json
config/projects.yaml
137 changes: 0 additions & 137 deletions CLAUDE.md

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ ALLOWED_USERS=123456789 # Comma-separated Telegram user IDs
```bash
# Claude
ANTHROPIC_API_KEY=sk-ant-... # API key (optional if using CLI auth)
ANTHROPIC_BASE_URL=... # Custom API endpoint (optional, for proxy/enterprise endpoints)
CLAUDE_MAX_COST_PER_USER=10.0 # Spending limit per user (USD)
CLAUDE_TIMEOUT_SECONDS=300 # Operation timeout

Expand Down
9 changes: 9 additions & 0 deletions config/projects.example.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
projects:
# Relative path (resolved against APPROVED_DIRECTORY)
- slug: claude-code-telegram
name: Claude Code Telegram
path: claude-code-telegram-main
enabled: true

# Relative path
- slug: infra
name: Infrastructure
path: infrastructure
enabled: true

# Absolute path example (must be within one of the approved directories)
# Uncomment and adjust if using APPROVED_DIRECTORIES
# - slug: external-project
# name: External Project
# path: /path/to/other/approved/directory/project
# enabled: true
3 changes: 3 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ DISABLE_TOOL_VALIDATION=false
# Authentication
ANTHROPIC_API_KEY=sk-ant-api03-... # Optional: API key for SDK (uses CLI auth if omitted)

# Custom API endpoint (optional, for proxy/enterprise endpoints)
ANTHROPIC_BASE_URL=https://your-proxy.example.com/v1 # Optional: custom base URL for Anthropic API

# Maximum conversation turns before requiring new session
CLAUDE_MAX_TURNS=10

Expand Down
Loading