Chat plan sign-in or metered key for an always-on assistant

Many people already pay for a chat subscription and wonder why they should pay again for API usage. The question shows up constantly from people setting up self-hosted agents and bots on a small VPS: can the subscription they have be used as the engine, perhaps through an OAuth login instead of a key?
The honest answer is: sometimes, within limits that are rarely explained well. Some agent tools now support signing in with a subscription account for specific products, while others only accept API keys. And a third category of projects tries to drive the consumer chat website through hidden browser sessions, which is fragile and risky.
This article explains the difference between these routes, the practical limits of each, and a sensible setup for people who want an always-on assistant without surprise bills. This site is not affiliated with OpenAI, and plan details change, so treat the provider's own help pages as the final word.
Frequently asked questions
What is the difference between a chat subscription and API access?
A subscription is a consumer or team product: you use the provider's apps, with usage limits designed for a person typing. API access is metered by tokens and built for programs, with its own billing, keys and rate limits. They are typically separate products, even when the same company sells both.
What does OAuth sign-in mean for an agent tool?
Instead of pasting a secret key, you log in through the provider's sign-in page and the tool receives a token tied to your account. Where a provider officially supports this for a product, usage counts against your plan's allowances rather than API billing.
Which is better for a 24/7 bot, OAuth or an API key?
For anything unattended, an API key is usually more predictable. Plan-based allowances are sized for interactive use and can reset on windows you do not control, and sign-in tokens can expire, which stops a bot in the middle of the night. Keys have explicit limits and billing you can monitor.
Can I share my subscription with a self-hosted server?
Only in the ways the provider explicitly supports. Exporting session cookies or automating the chat website from a server usually breaks the consumer terms and tends to trigger security checks. Read the provider's terms before trying anything clever.
Why do browser-automation wrappers keep breaking?
They depend on the exact structure of a website that changes without notice, and on the site not detecting automated use. Each update can break them, and accounts used this way can be flagged. They also give you no clean error codes to handle.
Is there a free way to power a hobby agent?
A keyless endpoint can work for light tasks. The one on this site serves free-ai, an independent open-weight model of roughly 35B parameters, not a GPT model. It suits chat, drafting and simple tool steps; complex multi-step coding agents usually do better with a stronger commercial model.
How do token expirations affect agents?
Short-lived sign-in tokens must be refreshed. If the refresh fails, the agent loses access until someone logs in again. Integrations with other services show the same pattern, which is why many people prefer long-lived tokens or keys that they rotate on their own schedule.
Does a subscription cover image or voice in agents?
That depends entirely on the product and the provider's current offering. Check the plan description directly. The free-ai endpoint here is text only, so voice and image steps would need another service.
Three ways people try to power an agent
When you set up an agent framework on a server, there are broadly three ways to give it a model. The first is an API key from a provider, billed by tokens. The second is an official sign-in flow where the tool authenticates as you and uses your plan. The third is an unofficial wrapper that drives the consumer chat website in a headless browser.
They look similar from the outside, since in all three your bot sends a message and receives an answer. Underneath they differ in reliability, cost model, terms and how they fail.
Metered API key
Most flexible and most transparent. You pay per token, see exact usage, and get standard HTTP errors. The downside is that cost scales with use, which is a shock for people who expected a flat fee.
Official sign-in
Convenient when a tool supports it, because there is no extra bill. But it is usually scoped to particular products and comes with allowances designed for people, not servers.
Website automation
Projects that run many hidden browser sessions to get unlimited access are the least stable. They are brittle, they may breach consumer terms, and you have little recourse when the account is restricted.
What subscription sign-in usually covers
Where providers have added sign-in for coding or agent tools, the arrangement is generally specific: certain clients, certain models, certain usage windows. Within those boundaries it can be a great deal for an individual developer who mostly works interactively.
Outside them, expect friction. A generic agent framework may not be an approved client. Usage caps can reset on rolling windows rather than daily. Parallel requests may be limited. And a plan intended for one person is not meant to serve a community bot used by hundreds.
- Check which clients the provider lists as supported for sign-in.
- Look for usage window rules on the plan's help page.
- Find out whether automated or background use is allowed.
- Note what happens when you hit the plan cap: slowdown, block or fallback.

Practical limits people run into
People who try the sign-in route for always-on bots report a few recurring problems. Sessions that need a fresh login after some days. Rate limits that appear when a group chat gets busy. Features that work in the official app but not in a third-party tool. None of these show up in a quick test, only after a week of real use.
Integrations with other platforms bring the same issue from another direction. Teams connecting project trackers to assistants have complained about OAuth tokens expiring within an hour, which is why many fall back to long-lived API tokens they control.
Refresh failures at night
A bot that loses its token at three in the morning stays dead until someone notices. If you must use sign-in, add a health check that alerts you when authentication fails.
Concurrency on personal plans
Personal plans are often tuned for one conversation at a time. A bot answering several channels may queue or fail. Metered APIs, including the free one here, publish concurrency limits up front.
Why browser hacks are a bad foundation
It is easy to find projects promising unlimited flagship-model usage with no key and no GPU, by orchestrating hidden chat sessions in a browser. The appeal is obvious. The problems are just as obvious once you run one for a while.
These tools scrape a web interface, so any visual redesign breaks them. They depend on not being detected as automation, which is a moving target. They expose your account cookies to software you did not write. And they produce no proper error codes, so your agent cannot distinguish a timeout from a refusal from a broken page.
Account risk
Consumer accounts used in ways the terms do not allow can be limited or closed. If that account also holds your chat history and paid plan, the cost is higher than any API bill you avoided.

A safer split for an always-on assistant
Most people get the best result by mixing routes. Keep using the subscription the way it was designed, in the official apps, for your own interactive work. Give the always-on bot its own metered key with a hard budget, or a free endpoint for light tasks, so its usage is visible and isolated.
This also keeps failures contained. If the bot misbehaves, you revoke one key rather than losing access to your personal account. And if you later move the bot to another provider, only one configuration value changes. For a full example of such a bot, see running a Discord bot on a VPS.
Give the bot a budget
If the bot uses a paid key, set a monthly cap in the provider console. If it uses the free endpoint, remember the daily per-IP ceiling of 10,000 requests or 10 million tokens, reset at 00:00 UTC.
import os
from openai import OpenAI
# The bot gets its own client, separate from anything personal.
bot_llm = OpenAI(
base_url=os.getenv("BOT_LLM_URL", "https://api.apifreekeyopenai.com/v1"),
api_key=os.getenv("BOT_LLM_KEY", "not-needed"),
)
BOT_MODEL = os.getenv("BOT_LLM_MODEL", "free-ai")
def answer(question: str) -> str:
r = bot_llm.chat.completions.create(
model=BOT_MODEL,
messages=[
{"role": "system", "content": "You are a concise helper in a team chat."},
{"role": "user", "content": question},
],
max_tokens=400,
)
return r.choices[0].message.contentWhere a keyless endpoint fits
A keyless endpoint removes the whole authentication question. There is no token to expire and no secret to store on the server. The base URL is https://api.apifreekeyopenai.com/v1, the model name is free-ai, and any placeholder key satisfies an SDK that insists on one.
The trade-off is capability and guarantees. The model is smaller than leading commercial systems and has no multimodal input. The service has no SLA, may return 503 when busy, and limits each IP to about one request per second. For a personal or small-team bot, that is often enough; for a public bot serving many users, it is not.
Agents with tools
Simple tool use, such as looking up a value and summarizing it, works well. Long autonomous chains with many steps benefit from a stronger model and careful guardrails.
Fewer refusals, two hard rules
The model refuses less often than commercial assistants, which helps with blunt internal tooling. It still never produces sexual content involving minors or operational instructions for mass-casualty weapons.

Questions to settle before choosing
Before committing, write down how the agent will be used. Who talks to it, how often, and how bad is it if it stops for a day? Does it handle anything confidential? The answers point clearly at one route.
Plan for migration
Whatever you pick, keep the model behind a small wrapper. Plans, prices and supported clients change, and a wrapper lets you follow without rewriting the agent.
- Interactive use by you alone: official apps or sign-in where supported.
- Unattended bot with modest traffic: dedicated key with a cap, or the free endpoint.
- Public bot or business process: paid API with monitoring and a fallback.
- Anything relying on scraped web sessions: avoid.
Keeping credentials out of the agent's reach
Agents read files and run commands, so treat any secret on the same machine as potentially exposed. Store keys in environment variables or a secret manager, not in the agent's working directory, and never let the agent print its own configuration into a chat channel.
This is one more reason a keyless route is attractive for experiments: there is nothing to leak. For the broader topic of keeping secrets out of what you send to a model, see keeping secrets out of prompts.
Rotate after experiments
If you tested an agent with a real key and then gave it broad file access, rotate the key afterward. It takes a minute and removes the uncertainty.

Send a prompt to the keyless free-ai endpoint from the home page and see a reply in seconds, no sign-up needed.
Read also
- How to translate subtitle files with an OpenAI-compatible LLM API
- Why do API answers differ from what the ChatGPT app tells you?
- Chat completions vs text completions: which endpoint should you use?
- Why does an OpenAI-compatible endpoint throw internal server errors?
- How to run an always-on Discord bot on a VPS with an LLM API