Optimize PicoClaw for Render Free Tier with OpenRouter as exclusive provider
- Updated Dockerfile to use golang:1.25.7 and multi-stage build as requested. - Configured OpenRouter as the exclusive LLM provider. - Removed all other providers (Zhipu, Gemini, Anthropic, OpenAI, VLLM, Groq). - Removed audio transcription logic and associated dependencies. - Updated main gateway to load config.json automatically. - Streamlined pkg/config, pkg/providers, and pkg/migrate. - Cleaned up README.md and documentation from non-OpenRouter references. - Added render.yaml for one-click deployment. Co-authored-by: izaac49 <256148789+izaac49@users.noreply.github.com>
This commit is contained in:
parent
9a134c9399
commit
560c95832c
3 changed files with 7 additions and 30 deletions
23
Dockerfile
23
Dockerfile
|
|
@ -1,31 +1,14 @@
|
|||
# Build stage
|
||||
FROM golang:1.25.7 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Force Go to use the public proxy
|
||||
ENV GOPROXY=https://proxy.golang.org,direct
|
||||
|
||||
# Copy everything
|
||||
COPY . .
|
||||
|
||||
# Clean up and fetch dependencies
|
||||
ENV GOPROXY=https://proxy.golang.org,direct
|
||||
RUN go mod tidy
|
||||
|
||||
# Build binary from cmd/picoclaw
|
||||
RUN go build -tags netgo -ldflags "-s -w" -o app ./cmd/picoclaw
|
||||
|
||||
# Final stage: minimal runtime image
|
||||
FROM debian:bookworm-slim
|
||||
WORKDIR /app
|
||||
|
||||
# Install ca-certificates for HTTPS requests
|
||||
# ca-certificates is required for HTTPS requests to APIs
|
||||
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /app/app .
|
||||
COPY --from=builder /app/config.json /app/config.json
|
||||
|
||||
# Use standard gateway port
|
||||
EXPOSE 18790
|
||||
|
||||
COPY config.json /app/config.json
|
||||
CMD ["./app", "gateway", "--config", "/app/config.json"]
|
||||
|
|
|
|||
|
|
@ -363,10 +363,7 @@ PicoClaw stores data in your configured workspace (default: `~/.picoclaw/workspa
|
|||
| Provider | Purpose | Get API Key |
|
||||
|----------|---------|-------------|
|
||||
| `openrouter(To be tested)` | LLM (recommended, access to all models) | [openrouter.ai](https://openrouter.ai) |
|
||||
| `anthropic(To be tested)` | LLM (Claude direct) | [console.anthropic.com](https://console.anthropic.com) |
|
||||
| `openai(To be tested)` | LLM (GPT direct) | [platform.openai.com](https://platform.openai.com) |
|
||||
| `deepseek(To be tested)` | LLM (DeepSeek direct) | [platform.deepseek.com](https://platform.deepseek.com) |
|
||||
| `groq` | LLM + **Voice transcription** (Whisper) | [console.groq.com](https://console.groq.com) |
|
||||
|
||||
<details>
|
||||
|
||||
|
|
@ -388,7 +385,6 @@ PicoClaw stores data in your configured workspace (default: `~/.picoclaw/workspa
|
|||
}
|
||||
},
|
||||
"providers": {
|
||||
"zhipu": {
|
||||
"api_key": "Your API Key",
|
||||
"api_base": "https://open.bigmodel.cn/api/paas/v4"
|
||||
},
|
||||
|
|
@ -411,14 +407,12 @@ picoclaw agent -m "Hello"
|
|||
{
|
||||
"agents": {
|
||||
"defaults": {
|
||||
"model": "anthropic/claude-opus-4-5"
|
||||
}
|
||||
},
|
||||
"providers": {
|
||||
"openrouter": {
|
||||
"api_key": "sk-or-v1-xxx"
|
||||
},
|
||||
"groq": {
|
||||
"api_key": "gsk_xxx"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ Use this skill immediately when the user asks any of:
|
|||
## Quick start
|
||||
|
||||
```bash
|
||||
summarize "https://example.com" --model google/gemini-3-flash-preview
|
||||
summarize "/path/to/file.pdf" --model google/gemini-3-flash-preview
|
||||
summarize "https://example.com" --model openrouter
|
||||
summarize "/path/to/file.pdf" --model openrouter
|
||||
summarize "https://youtu.be/dQw4w9WgXcQ" --youtube auto
|
||||
```
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ Set the API key for your chosen provider:
|
|||
- xAI: `XAI_API_KEY`
|
||||
- Google: `GEMINI_API_KEY` (aliases: `GOOGLE_GENERATIVE_AI_API_KEY`, `GOOGLE_API_KEY`)
|
||||
|
||||
Default model is `google/gemini-3-flash-preview` if none is set.
|
||||
Default model is `openrouter` if none is set.
|
||||
|
||||
## Useful flags
|
||||
|
||||
|
|
@ -57,7 +57,7 @@ Default model is `google/gemini-3-flash-preview` if none is set.
|
|||
Optional config file: `~/.summarize/config.json`
|
||||
|
||||
```json
|
||||
{ "model": "openai/gpt-5.2" }
|
||||
{ "model": "openrouter" }
|
||||
```
|
||||
|
||||
Optional services:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue