web: magpie web's usage tells of MAGPIE_WEB_KEY, which keeps one key across runs and browsers signed in for 400 days (#113)

This commit is contained in:
yetone committed 2026-09-27 20:28:39 +08:00
1 parent 73b650b281
commit 261f0594de
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -32,6 +32,7 @@ const usage = `magpie — one place to pick every agent's model
magpie tui the same thing, in the terminal
magpie web [--addr host:port] [--lan] [--no-open]
the app's window in a browser, with the gateway (no desktop needed: WSL, a server over SSH)
a new key each run; MAGPIE_WEB_KEY (16+ letters, digits, - . _ ~) keeps one, signed in for 400 days
magpie ls list detected agents and their settings
magpie <agent> show one agent
magpie <agent> <model> set an agent's model e.g. magpie claude deepseek/deepseek-chat
+2 -2
View File
@@ -29,7 +29,7 @@ func webCmd(args []string) error {
case a == "--no-open":
open = false
default:
return fmt.Errorf("magpie web: unknown %q · magpie web [--addr host:port] [--lan] [--no-open]", a)
return fmt.Errorf("magpie web: unknown %q · magpie web [--addr host:port] [--lan] [--no-open], MAGPIE_WEB_KEY to keep one key", a)
}
}
if lan && addr == webAddr {
@@ -50,7 +50,7 @@ func webCmd(args []string) error {
}
fmt.Println(amber.Render("!"), "anyone with the link can change magpie and see its keys, and the network carries it unencrypted")
}
carries := "this run's key"
carries := "this run's key (MAGPIE_WEB_KEY keeps one across runs)"
if os.Getenv("MAGPIE_WEB_KEY") != "" {
carries = "MAGPIE_WEB_KEY"
}