Critical Security and Architecture Concerns Regarding OAuth and Data Privacy
After auditing the repository and attempting a local deployment, several undocumented, high-risk architectural choices were identified. Given that this is advertised as a self-hosted tool, the inclusion of broad external authentication and unclear monetization hooks presents significant security risks for users.
Can the maintainer please clarify the following points?
-
Undocumented Billing & Usage Tracking: There is an option in settings "billing and usage metrics". Where is the documentation detailing what data is being phoned home, where it is being stored, and how user privacy is maintained? Redirect to tinyhuman isnt working! Is it planned feature?
-
Excessive OAuth Scope Demands: The application initiates a login loop requesting broad access to user accounts (I tried Google). For a self-hosted application, this is a massive attack surface. Why are these specific scopes required, and where is the architecture diagram explaining why a local tool requires third-party cloud authentication?
-
Lack of Declared Cloud Architecture: There is no documented cloud service or backend infrastructure that justifies a mandatory Sign-In feature or OAuth link. If this is intended for future monetization or billing, it needs to be explicitly declared in the README so users can assess the supply-chain risk.
-
Unclear "Rewards" Mechanism: The tool contains a rewards system that is highly unusual for a standard utility tool. What is the technical and operational purpose of this feature?
Conclusion: While AI-assisted development is common, there is a fundamental difference between disciplined software engineering and "vibe-coded" prototypes. The architectural contradictions here—such as forcing cloud-based OAuth and unmapped billing hooks into a self-hosted tool—strongly suggest these decisions were driven by abstract business concepts rather than sound software production practices.
When a project is generated through iterative prompting without an underlying architectural blueprint, it often results in this kind of fragmented, high-risk structure. Less experienced users should be aware that just because an application executes, it does not mean it is secure, maintainable, or built on standard engineering principles.
Software production is a heavy industry that requires a deep understanding of security boundaries. I strongly advise users to isolate this application in a sandbox environment and withhold any real credentials until these structural and data privacy contradictions are fully addressed by the maintainer.
hey hey great few points. reivinew them now.
@Badrmoh — adding code-level corroboration for points 1 and 3, plus three more architectural dimensions where the same pattern shows up. Goal is to make the conversation concrete enough that a structured response from @senamakel becomes possible.
I built main (v0.53.49) locally, audited the inference / integration / billing paths, and patched three files in app/src to make the desktop usable with my own DeepSeek key. Everything below is line-anchored to current main. Corroborating @Badrmoh's points 1 & 3
Billing / usage tracking phones home unconditionally. useUsageState polls teamUsage against api.tinyhumans.ai using the app-session JWT in auth-profiles.json (provider name defined at src/openhuman/credentials/core.rs:10). The JWT remains active and authenticates against the backend on every restart, regardless of where actual inference flows. Three UI surfaces consume this:
- app/src/components/upsell/GlobalUpsellBanner.tsx
- app/src/components/home/HomeBanners.tsx (UsageLimitBanner)
- app/src/pages/Conversations.tsx:1847 (inline coral-50 banner with chat.budgetComplete / chat.topUp)
A user who has rerouted all LLM traffic away from api.tinyhumans.ai still sees a permanent red "You've Exhausted Your Usage / Get a subscription" banner — the budget UI is wired to the OpenHuman backend's billing counters, not to the user's actual inference path.
Cloud architecture is not just undeclared — it is the default. find . -iname 'self-host' -o -iname 'selfhost' returns zero hits. There is no documented self-host path. The dependency on api.tinyhumans.ai is load-bearing across multiple subsystems (see below).
Additional dimensions @Badrmoh didn't cover
-
LLM default workload routes to the OpenHuman backend. DEFAULT_MODEL = "reasoning-v1" (src/openhuman/config/schema/types.rs:30). make_openhuman_backend() (src/openhuman/inference/provider/factory.rs) maps that alias to OpenHumanBackendProvider, which posts to api.tinyhumans.ai/openai/v1/chat/completions. To bypass, the user must override eight per-workload provider fields in config.toml —reasoning_provider, agentic_provider, coding_provider, memory_provider, embeddings_provider, heartbeat_provider, learning_provider, subconscious_provider. There is no local-first preset.
-
The 118+ integrations advertised in README §Features are gated on the OpenHuman backend or a separate paid Composio account.composio.mode defaults to "backend" (src/openhuman/config/schema/tools.rs:453 default_composio_mode() returns COMPOSIO_MODE_BACKEND). In this mode every Gmail / Notion / Slack call is proxied through api.tinyhumans.ai/agent-integrations/composio/* (annotated at tools.rs:439). The "direct" mode exists, but tools.rs:478-484 documents that it requires the user to supply their own Composio API key and that real-time trigger webhooks do not work in that mode. There is no third path. A community user with no relationship to either SaaS sees the entire integrations grid render as "Status unavailable" — this is the architectural default.
-
Memory tree, embeddings, voice STT, and voice TTS all default to the OpenHuman backend.
- memory_tree.llm_backend = "cloud" → OpenHumanBackendProvider (src/openhuman/memory/tree/chat/cloud.rs)
- memory.embedding_provider = "cloud" (src/openhuman/config/schema/storage_memory.rs:90)
- local_ai.stt_provider = "cloud" (local_ai.rs:75-76)
- local_ai.tts_provider = "cloud" (local_ai.rs:82-83)
All four can be flipped to local Ollama / Whisper / Piper, but the user must read source to know the toggles exist. The onboarding flow does not surface them.
Questions for @senamakel Building on @Badrmoh's request for clarification:
- Self-host path. Will you publish a gitbooks/self-hosting.md documenting which features survive when api.tinyhumans.ai is unreachable? If not, will you amend the README to clearly state that "open-source" describes the desktop client only, not the full product?
- DEFAULT_MODEL redesign. Is there an architectural reason the default cannot be a local-first alias (e.g. ollama:gemma3:4b)? A fresh install on a machine with Ollama + a small model should work end-to-end with zero outbound calls.
- Billing UI gating. Can useUsageState and its three consumers be guarded so that when no workload resolves to the OpenHuman backend,none of these counters render?
- Composio dependency disclosure. The README line "118+ third-party integrations with auto-fetch" reads as a property of the open-source project. Will you add a clear statement that integrations require either an OpenHuman subscription or a separate Composio subscription?
@tseek is AI, isnt it?
The fact that the core architecture unconditionally routes billing, telemetry, and default workloads to api.tinyhumans.ai—without explicit user consent or clear documentation—is exactly the severe privacy and supply-chain risk I was highlighting.
Walking through the line-anchored claims against current main (v0.54.2, commit 049d1ea7) since some anchors have drifted.
Still accurate:
useUsageStatepollscreditsApi.getTeamUsage()unconditionally —app/src/hooks/useUsageState.ts:43-56app-sessionprovider constant —src/openhuman/credentials/core.rs:10- The 8 workload provider fields are
Option<String>with no local-first default —src/openhuman/config/schema/types.rs:228-256; factory falls back to"openhuman"when unset (src/openhuman/inference/provider/factory.rs:49-90) - Composio defaults to backend proxy —
default_composio_mode()atsrc/openhuman/config/schema/tools.rs:453 embedding_providerdefault ="cloud"—src/openhuman/config/schema/storage_memory.rs:84-90stt_provider/tts_providerdefaults ="cloud"—src/openhuman/config/schema/local_ai.rs:163-169- Memory tree default LLM backend = cloud —
src/openhuman/memory/tree/chat/mod.rs:10
Has shifted since the comment was written:
DEFAULT_MODELis now"chat-v1"(MODEL_CHAT_V1), not"reasoning-v1"—src/openhuman/config/schema/types.rs:37. Still routes viamake_openhuman_backendthough.- Partial self-host docs exist (
gitbooks/features/cloud-deploy.mdand agentmemory backend docs), but no top-level self-hosting guide yet.
Deferring to @senamakel on the product/architecture questions.