Skip to content

fix(install): turn off plan gates in the Windows installer config - #4599

Merged
Salazareo merged 1 commit into
HeyPuter:mainfrom
b84330808:fix-install-ps1-subscription-gates
Nov 12, 2026
Merged

Salazareo merged 1 commit into
HeyPuter:mainfrom
b84330808:fix-install-ps1-subscription-gates

Conversation

@b84330808

Copy link
Copy Markdown

install.sh writes "meteringEnforcement": { "subscriptions": false } into puter/config/config.json, and doc/self-hosting.md explains why: a self-hosted install has no paid plans, so with the plan gates on, the OpenAI/Anthropic-compatible AI endpoints return 402 subscription_required for every account. install.ps1 didn't get that key when it was added, so a Windows install made with the README one-liner (irm https://puter.com/selfhost?os=windows | iex) still has the gates on, since subscriptionEnforcementEnabled treats a missing key as on.

This writes the same key from install.ps1, in the same place as install.sh.

How this was tested: install.ps1 (Windows PowerShell 5.1) and install.sh (Git Bash) were run end to end on Windows 11 with a stub docker and PUTER_URL pointing at this checkout, and the two generated config.json files were compared. Before the change, the only difference was the missing meteringEnforcement key. After it, both files have the same keys in the same order and the same non-secret values.

install.sh writes "meteringEnforcement": { "subscriptions": false } into
config.json because a self-hosted install has no paid plans, so with the
gates on the OpenAI/Anthropic-compatible AI endpoints answer 402
subscription_required for every account. install.ps1 never got that
key, so a Windows install made with the README one-liner still has the
gates on. Write the same key from install.ps1.
@CLAassistant

CLAassistant commented Nov 11, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Salazareo
Salazareo enabled auto-merge (squash) November 12, 2026 22:43
@Salazareo
Salazareo merged commit a6e75b4 into HeyPuter:main Nov 12, 2026
13 checks passed
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.

3 participants