feat(agents): z.ai GLM coding plan provider + paperclip env passthrough
- opencode.nix: add zai-coding-plan provider (OpenAI-compatible coding-plan
endpoint, apiKey via {env:ZAI_API_KEY}) with glm-5.3 (1M ctx) and
glm-5-turbo — resolves in OpenCode itself, so Paperclip's opencode-harness
agents can run on the GLM flat rate
- paperclip.nix: optional EnvironmentFile=%h/.config/paperclip.env so
agents spawned by the service inherit provider keys
This commit is contained in:
1 parent
800a356b66
commit
a660e920b6
2 files changed
+36
No files matched your search
@@ -40,6 +40,10 @@
|
||||
"PAPERCLIP_INSTANCE_ID=default"
|
||||
"PAPERCLIP_HOME=%h/.paperclip"
|
||||
];
|
||||
# Optional per-user env file (e.g. ZAI_API_KEY for the GLM coding
|
||||
# plan) — inherited by agent harnesses spawned from the service.
|
||||
# Leading '-' keeps the unit working when the file is absent.
|
||||
EnvironmentFile = "-%h/.config/paperclip.env";
|
||||
WorkingDirectory = "%h";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
|
||||
Reference in new issue
Block a user