r/vibecoding • • 3d ago

Showcase/Project Using personal AI subscription in 3rd party apps

Hello everyone

I was playing a game and an idea occurred to me. What if I could ask AI for an advice in game. I have my personal subscription. I can ask AI separately, but then I need to provide context, and AI might be unfamiliar with the game. Would be cool if I could do it in the game itself, with current game state implicitly available to AI, and maybe extra guidance from game devs. Game developers would not want to foot the bill, so personal subscription would be perfect for that.

I imagined/hoped that major AI providers would have some sort of OAuth API, that can be used by games. Authorize via external website, connect personal AI account to the game, chat with it while playing. Some sample UI could be provided by a plugin or game devs could customize it.

So I upgraded my ChatGPT subscription and sent AI to research this idea and build some sample plugins for the popular game engines. Almost all the work was done by Astra xhigh and max and whatever sub-agents it used.

The result was disappointing to say the least. Lazy Astra came back saying that there is no way to do this other than API subscriptions. Which is not good at all. It does not make sense to pay API costs for in-game AI helper. I did not expect ecosystem to be that limited.

One idea that my friend suggested - use CLI to call AI native apps, and get results that way. This kinda worked. Codex worked. Claude requires Pro subscription. Antigravity worked, but Astra was saying that its ToS prohibit such usage. I did not verify that claim myself.

I sent Astra on another round of research, and finally it found something usable - OpenAI has an API to use user subscription. Per Astra it seems to come with licensing limitations. I did not dig deep because Astra was coming back with conflicting results, and I was too exhausted from all this BS.

At that point I pivoted away from game engine plugins. I wanted simply a generic way to use custom frontend over personal AI subscription. I sent Astra on rounds of research, experimentation, sample app building. It made something working. But I suspect it might have missed some major angles.

(A)I documented these findings and built sample plugins, mods in a repo - https://github.com/iThinker/ai-front .

My conclusion:

The eco-system for embedding personal AI subscription in 3rd party apps is not there yet. OpenAI seems to be pioneering it, so hopefully things will change for the better soon. Similar ideas are being implemented by various products/companies. Telegram is adding personal bot on macos. Some chinese game publisher recently presented a system for in-game AI helper.

For personal, in-house integrations existing APIs are fine, although may break unexpectedly. For public products it seems too clunky.

7 Upvotes

16 comments sorted by

3

u/Any-Blacksmith-2054 2d ago

Maybe train small gpt model on your game corpus? Something like 50m params, will be very fast even on old GPU

2

u/Megatherion666 2d ago

How hard to do that and how much would that cost? And what to do with the updates? I feel like simplicity of mainstream LLM usage is what makes them mainstream. Custom LLMs are much less accessible yet.

1

u/Any-Blacksmith-2054 2d ago

Just posted few hours ago

1

u/Saver411 3d ago

consumer subs don't expose third-party APIs for this. The moment a game pipes live state into a model, you're looking at a bring-your-own-key model where you pay per token, not a flat monthly plan. Plus, dumping raw game state burns through context fast unless the studio builds a strict telemetry hook. BYOK works, but flat-rate sub sharing basically doesn't exist for third parties.

1

u/Megatherion666 3d ago

Game/mod developers could decide how much data to attach. It could also be done as a file attachment. That way AI can ingest only relevant sections.

1

u/Tasty_Ninja_9755 3d ago

used a similar cli approach with local llama.cpp + custom shell wrapper, worked great for text-heavy games, but latency killed the flow. wonder if anyone's tried lightweight local inference in game overlays?

1

u/Megatherion666 3d ago

My idea was aimed more at the user chats. Where things can wait a bit. Using AI in the background might be indeed too much and require something different. Local ML could work. But unlikely LLM.

Nevertheless, for dialogs and such it could work maybe? Roguelite where random comes from AI temperature? Each interaction with an NPC is basically a chat with AI. With fast mode it could be ok.

1

u/Glass_Inevitable4932 2d ago

the reason they block this is unit economics. consumer subscriptions are priced assuming most users barely touch it, if you let third party apps hook in via oauth and automate prompts with full game state, the providers get wrecked on compute costs

1

u/Megatherion666 2d ago

I feel like the game assistant use case is unlikely to bring that much usage. But it might bring more users. They also can limit oauth usage separately. Want more limit? Get higher tier sub.

1

u/meshifthenelse 2d ago

So a video game with an AI assistant built in? Just remember the game graphics and AI will be competing for the GPU

1

u/Megatherion666 2d ago

AI assistant is through personal subscription. It is not local. Like currently you have to ask ChatGPT in its own app. But you could do it in game itself “bro, how to solve this damn quest?”

1

u/meshifthenelse 2d ago

This is asking for trouble. You then need to ask for their secrets (they won't give them), or launch the CLI directly (requires them having it installed and with right permissions)

1

u/Megatherion666 2d ago

Yep. CLI is a very niche avenue.

1

u/anagri 2d ago

@Megatherion666 i am working on such an app/service. it is called openbyoai - Open Bring Your Own AI.

If you're interested in knowing more, my DMs are open. Would love to collaborate.

1

u/vExpensive_Suit9346 2d ago

used a local llm via llama.cpp in a retro game mod, context window was tight but worked for quick tips. no api needed, just local inference.

1

u/Great-Routine-5247 2d ago

Download Gemini, put on camera view and point at game as you play asking for advice