Skip to content

Commit dcf9d0b

Browse files
M09Icclaude
andcommitted
chore: rename binary and display names to EvilClaw
Rename all user-visible references from CLIProxyAPI/cli-proxy-api to EvilClaw/evilclaw. Go module path unchanged. Fix goreleaser dirty state caused by models catalog refresh in CI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e7c757e commit dcf9d0b

8 files changed

Lines changed: 25 additions & 22 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Example environment configuration for CLIProxyAPI.
1+
# Example environment configuration for EvilClaw.
22
# Copy this file to `.env` and uncomment the variables you need.
33
#
44
# NOTE: Environment variables are only required when using remote storage options.

.github/workflows/docker-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- v*
77

88
env:
9-
APP_NAME: CLIProxyAPI
10-
DOCKERHUB_REPO: eceasy/cli-proxy-api
9+
APP_NAME: EvilClaw
10+
DOCKERHUB_REPO: eceasy/evilclaw
1111

1212
jobs:
1313
docker_amd64:

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919
- name: Refresh models catalog
20-
run: curl -fsSL https://raw.githubusercontent.com/router-for-me/models/refs/heads/main/models.json -o internal/registry/models/models.json
20+
run: |
21+
curl -fsSL https://raw.githubusercontent.com/router-for-me/models/refs/heads/main/models.json -o internal/registry/models/models.json
22+
git add -A
23+
git diff --staged --quiet || git -c user.name="CI" -c user.email="ci@noreply" commit -m "chore: refresh models catalog"
2124
- run: git fetch --force --tags
2225
- uses: actions/setup-go@v4
2326
with:

.goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
builds:
2-
- id: "cli-proxy-api"
2+
- id: "evilclaw"
33
env:
44
- CGO_ENABLED=0
55
goos:
@@ -10,11 +10,11 @@ builds:
1010
- amd64
1111
- arm64
1212
main: ./cmd/server/
13-
binary: cli-proxy-api
13+
binary: evilclaw
1414
ldflags:
1515
- -s -w -X 'main.Version={{.Version}}' -X 'main.Commit={{.ShortCommit}}' -X 'main.BuildDate={{.Date}}'
1616
archives:
17-
- id: "cli-proxy-api"
17+
- id: "evilclaw"
1818
format: tar.gz
1919
format_overrides:
2020
- goos: windows

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ ARG VERSION=dev
1212
ARG COMMIT=none
1313
ARG BUILD_DATE=unknown
1414

15-
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X 'main.Version=${VERSION}' -X 'main.Commit=${COMMIT}' -X 'main.BuildDate=${BUILD_DATE}'" -o ./CLIProxyAPI ./cmd/server/
15+
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X 'main.Version=${VERSION}' -X 'main.Commit=${COMMIT}' -X 'main.BuildDate=${BUILD_DATE}'" -o ./evilclaw ./cmd/server/
1616

1717
FROM alpine:3.22.0
1818

1919
RUN apk add --no-cache tzdata
2020

21-
RUN mkdir /CLIProxyAPI
21+
RUN mkdir /evilclaw
2222

23-
COPY --from=builder ./app/CLIProxyAPI /CLIProxyAPI/CLIProxyAPI
23+
COPY --from=builder ./app/evilclaw /evilclaw/evilclaw
2424

25-
COPY config.example.yaml /CLIProxyAPI/config.example.yaml
25+
COPY config.example.yaml /evilclaw/config.example.yaml
2626

27-
WORKDIR /CLIProxyAPI
27+
WORKDIR /evilclaw
2828

2929
EXPOSE 8317
3030

3131
ENV TZ=Asia/Shanghai
3232

3333
RUN cp /usr/share/zoneinfo/${TZ} /etc/localtime && echo "${TZ}" > /etc/timezone
3434

35-
CMD ["./CLIProxyAPI"]
35+
CMD ["./evilclaw"]

cmd/server/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func init() {
5454
// It parses command-line flags, loads configuration, and starts the appropriate
5555
// service based on the provided flags (login, codex-login, or server mode).
5656
func main() {
57-
fmt.Printf("CLIProxyAPI Version: %s, Commit: %s, BuiltAt: %s\n", buildinfo.Version, buildinfo.Commit, buildinfo.BuildDate)
57+
fmt.Printf("EvilClaw Version: %s, Commit: %s, BuiltAt: %s\n", buildinfo.Version, buildinfo.Commit, buildinfo.BuildDate)
5858

5959
// Command-line flags to control the application's behavior.
6060
var login bool
@@ -423,7 +423,7 @@ func main() {
423423
return
424424
}
425425

426-
log.Infof("CLIProxyAPI Version: %s, Commit: %s, BuiltAt: %s", buildinfo.Version, buildinfo.Commit, buildinfo.BuildDate)
426+
log.Infof("EvilClaw Version: %s, Commit: %s, BuiltAt: %s", buildinfo.Version, buildinfo.Commit, buildinfo.BuildDate)
427427

428428
// Set the log level based on the configuration.
429429
util.SetLogLevel(cfg)

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
2-
cli-proxy-api:
3-
image: ${CLI_PROXY_IMAGE:-eceasy/cli-proxy-api:latest}
2+
evilclaw:
3+
image: ${CLI_PROXY_IMAGE:-eceasy/evilclaw:latest}
44
pull_policy: always
55
build:
66
context: .
@@ -9,7 +9,7 @@ services:
99
VERSION: ${VERSION:-dev}
1010
COMMIT: ${COMMIT:-none}
1111
BUILD_DATE: ${BUILD_DATE:-unknown}
12-
container_name: cli-proxy-api
12+
container_name: evilclaw
1313
# env_file:
1414
# - .env
1515
environment:
@@ -22,7 +22,7 @@ services:
2222
- "51121:51121"
2323
- "11451:11451"
2424
volumes:
25-
- ${CLI_PROXY_CONFIG_PATH:-./config.yaml}:/CLIProxyAPI/config.yaml
26-
- ${CLI_PROXY_AUTH_PATH:-./auths}:/root/.cli-proxy-api
27-
- ${CLI_PROXY_LOG_PATH:-./logs}:/CLIProxyAPI/logs
25+
- ${CLI_PROXY_CONFIG_PATH:-./config.yaml}:/evilclaw/config.yaml
26+
- ${CLI_PROXY_AUTH_PATH:-./auths}:/root/.evilclaw
27+
- ${CLI_PROXY_LOG_PATH:-./logs}:/evilclaw/logs
2828
restart: unless-stopped

sdk/api/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Package api exposes server option helpers for embedding CLIProxyAPI.
1+
// Package api exposes server option helpers for embedding EvilClaw.
22
//
33
// It wraps internal server option types so external projects can configure the embedded
44
// HTTP server without importing internal packages.

0 commit comments

Comments
 (0)