Skip to content

[codex] Add server-side Composio managed auth#735

Merged
jahooma merged 15 commits into
mainfrom
jahooma/composio-managed-auth
May 25, 2026
Merged

[codex] Add server-side Composio managed auth#735
jahooma merged 15 commits into
mainfrom
jahooma/composio-managed-auth

Conversation

@brandonkachen
Copy link
Copy Markdown
Collaborator

Summary

  • Add Composio meta tools to the base/freebuff agent and expose them through SDK custom tool definitions.
  • Route all Composio tool listing/execution through authenticated server endpoints so the Composio API key stays server-side.
  • Persist Composio session IDs in Postgres and rehydrate sessions from DB when web process memory is cold.
  • Add basic per-user rate limiting, structured logging, and endpoint/rate-limiter tests.

Validation

  • bun --filter='{@codebuff/sdk,@codebuff/web,@codebuff/common,@codebuff/agents,@codebuff/internal}' run typecheck
  • bun test web/src/app/api/v1/composio/__tests__/composio.test.ts web/src/server/__tests__/composio-rate-limiter.test.ts
  • bun test agents/__tests__/base2.test.ts
  • git diff --check

Notes

  • This keeps the Composio API key on the web server and only sends the Codebuff API key from the SDK.
  • Rate limiting is intentionally basic and in-memory per web process; use Redis/Postgres counters later if we need strict global limits.

@jahooma jahooma marked this pull request as ready for review May 24, 2026 07:27
@jahooma jahooma force-pushed the jahooma/composio-managed-auth branch from fd05dbe to 8d9fd31 Compare May 24, 2026 23:31
@jahooma jahooma force-pushed the jahooma/composio-managed-auth branch from 37925cc to 9b3e906 Compare May 25, 2026 00:13
@jahooma jahooma merged commit 1e5b808 into main May 25, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/composio-managed-auth branch May 25, 2026 00:35
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.

2 participants