Skip to content

Add standalone serve command for proxy deployments#6

Merged
buildoak merged 3 commits intobuildoak:mainfrom
OdinYkt:feat/docker-serve-mode
Mar 19, 2026
Merged

Add standalone serve command for proxy deployments#6
buildoak merged 3 commits intobuildoak:mainfrom
OdinYkt:feat/docker-serve-mode

Conversation

@OdinYkt
Copy link
Copy Markdown
Contributor

@OdinYkt OdinYkt commented Mar 18, 2026

Why

Today the only supported entrypoint for wet is wet claude. That works for CLI sessions, but it does not cover Docker and Claude Code IDE Extension workflows where the client is configured via ANTHROPIC_BASE_URL and cannot be launched through the wrapper.

In practice, that means users who want wet as a drop-in reverse proxy beside the IDE extension need ad hoc setup, and the proxy startup path risks diverging between wrapper-driven and standalone usage.

What

  • add wet serve as a standalone proxy entrypoint
  • support --host, --port, --mode, --upstream, --session-id, and --resume, plus matching WET_* environment overrides
  • reuse the same proxy startup/shutdown path for both wet claude and wet serve
  • add unit tests for serve argument parsing and config application
  • add a Dockerfile and .dockerignore for containerized deployments
  • document the Docker / IDE Extension flow in the README and changelog

Testing

  • go test -race ./... -count=1 -timeout 120s
  • go build -o wet .

OdinYkt and others added 3 commits March 18, 2026 12:11
Add a note to `wet serve` usage that one proxy handles one main session;
separate ports needed for multiple concurrent conversations. Add a security
warning near the Docker section about unauthenticated /_wet/* endpoints when
binding to 0.0.0.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@buildoak buildoak merged commit f879d3c into buildoak:main Mar 19, 2026
buildoak added a commit that referenced this pull request Mar 19, 2026
- Standalone proxy mode via `wet serve` (PR #6)
- 4 lifecycle tests: startup, signal shutdown, resume validation, port conflict
- Embed cc-compatibility.md reference into skill FS
- Changelog and version bump to v0.2.0

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants