AI News HubLIVE
站內改寫2 分鐘閱讀

待翻譯:Show HN: Memcode AI goes open source with Claude Code inspired coding agent

AI 服務暫時不可用,以下為來源摘要,待恢復後補全翻譯:Uh oh! There was an error while loading. Please reload this page. Notifications You must be signed in to change notification settings Fork 0 Star 0 BranchesTags Open more actions menu Folders and files NameName Last com…

來源Hacker News AI作者: timerwin

AI 服務暫時不可用,以下為來源正文,待恢復後補全翻譯。

Uh oh! There was an error while loading. Please reload this page. Notifications You must be signed in to change notification settings Fork 0 Star 0 BranchesTags Open more actions menu Folders and files NameName Last commit message Last commit date Latest commit History 10 Commits 10 Commits .github/workflows .github/workflows assets assets catalog catalog cmd cmd deploy/docker deploy/docker docs docs gateway gateway internal internal protocol protocol tools/keyprobe tools/keyprobe .example.env .example.env .gitignore .gitignore .goreleaser.yaml .goreleaser.yaml COMPACTION.md COMPACTION.md HOOKS.md HOOKS.md LICENSE LICENSE README.md README.md ROUTING.md ROUTING.md go.mod go.mod go.sum go.sum main.go main.go models.json models.json Repository files navigation curl -fsSL https://memcode.ai/install.sh | sh Or with Go: go install github.com/memcode-ai/memcode@latest Or build from source: git clone https://github.com/memcode-ai/memcode cd memcode && go build -o memcode . Then run memcode in a repo. Use any model MEMCODE_ENDPOINT_URL=http://localhost:11434/v1 memcode # Ollama, local MEMCODE_ENDPOINT_URL=https://api.openai.com/v1 memcode # your OpenAI key (OPENAI_API_KEY) MEMCODE_ENDPOINT_URL=https://api.anthropic.com memcode # your Anthropic key (ANTHROPIC_API_KEY) OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, XAI_API_KEY, FIREWORKS_API_KEY, and friends are picked up automatically for their hosts. Named endpoints live in config, and /model switches models mid-session. With a memcode account you get one balance across every vendor, a key vault for BYOK, and hosted web search: memcode login Self-hosting The whole product is in this repo, gateway included, and the gateway is a single stateless binary: cd deploy/docker && cp ../../.example.env .env # set a token + a provider key docker compose up --build See docs/self-hosting.md. The hosted service at memcode.ai runs this same code with a private control plane on top (accounts, one balance across vendors, the BYOK vault, team features). Architecture The CLI is the agent: all model selection, escalation, and recovery run client-side; every backend is a plain serving surface speaking one OpenAI-compatible wire (protocol/PROTOCOL.md). The gateway under gateway/ is that serving surface, metered and typed, sharing one provider implementation with the CLI. Cloud-only behavior sits behind one control-plane seam; self-host mode constructs none of it. License MIT. See LICENSE. Resources Readme MIT license Activity Custom properties Stars 0 stars Watchers 0 watching Forks 0 forks Report repository