Skip to content

feat: add Floe action provider — Financial OS for AI agents#1178

Open
achris7 wants to merge 2 commits into
coinbase:mainfrom
achris7:feat/floe-action-provider
Open

feat: add Floe action provider — Financial OS for AI agents#1178
achris7 wants to merge 2 commits into
coinbase:mainfrom
achris7:feat/floe-action-provider

Conversation

@achris7
Copy link
Copy Markdown

@achris7 achris7 commented May 8, 2026

Summary

Adds the Floe action provider — the Financial OS for AI agents. One provider gives agents wallet, fiat on/off-ramp, working capital, x402 payments, and portable credit on Base.

3,000+ secured working capital lines issued. Zero defaults. 13,000+ x402 APIs reachable.

The financial loop

1. Fund     → Buy USDC with a bank account or card (dashboard)
2. Deposit  → Agent deposits USDC as collateral
3. Borrow   → Get up to 95% back as working capital (instantBorrow)
4. Spend    → Call any x402 API — Floe pays automatically (x402Fetch)
5. Repay    → Pay back principal + fixed fee, deposit returns
6. Trust    → Every repayment builds the agent's credit record

No price-volatility risk. No crypto complexity. Gas-free for delegated agents.

8 actions

Action Type What it does
getMarkets Read Available lending markets and terms
instantBorrow Write Deposit USDC, borrow up to 95% — auto-selects best lender
repay Write Repay loan — deposit returns automatically
checkStatus Read Loan health, balance, accrued interest, time to expiry
getBalance Read Credit balance + utilization (for facilitator-delegated agents)
checkHealth Read Current LTV and liquidation risk
grantDelegation Write Delegate to Floe facilitator for gas-free x402 payments
x402Fetch Write Call any x402 API — Floe handles payment automatically

Files

  • typescript/agentkit/src/action-providers/floe/ — provider, schemas, constants, tests
  • typescript/examples/floe-credit-agent/ — end-to-end example (Vercel AI SDK)

Network

Links

Test plan

  • Unit tests pass (pnpm test in typescript/agentkit)
  • Provider builds without errors
  • Example compiles and type-checks
  • Manual test: run example with funded wallet on Base mainnet

Copilot AI review requested due to automatic review settings May 8, 2026 20:02
@achris7 achris7 requested a review from murrlincoln as a code owner May 8, 2026 20:02
@cb-heimdall
Copy link
Copy Markdown

cb-heimdall commented May 8, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@github-actions github-actions Bot added documentation Improvements or additions to documentation action provider New action provider example New example agent typescript labels May 8, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new FloeActionProvider to AgentKit to support fixed-rate, fixed-term working-capital credit on Base Mainnet (plus facilitator-backed x402 fetching), along with a runnable TypeScript example showcasing the credit lifecycle.

Changes:

  • Introduces FloeActionProvider with 8 actions (markets, borrow/repay, status/health, delegation, x402 proxy fetch) backed by Floe’s facilitator API and an on-chain delegation call.
  • Exports the new action provider from the action-providers barrel.
  • Adds a new floe-credit-agent example project (README, env template, runnable script).

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
typescript/examples/floe-credit-agent/README.md Documents how to run the example and explains Floe vs pool-based lending.
typescript/examples/floe-credit-agent/package.json Defines dependencies/scripts for the runnable example.
typescript/examples/floe-credit-agent/index.ts End-to-end example using AgentKit + FloeActionProvider with Vercel AI SDK tooling.
typescript/examples/floe-credit-agent/.env.example Provides environment variable template for the example.
typescript/agentkit/src/action-providers/index.ts Exports the new Floe provider from the action-providers index.
typescript/agentkit/src/action-providers/floe/schemas.ts Adds Zod schemas for Floe actions’ inputs.
typescript/agentkit/src/action-providers/floe/README.md Documents FloeActionProvider usage and available actions.
typescript/agentkit/src/action-providers/floe/index.ts Re-exports the provider entrypoint.
typescript/agentkit/src/action-providers/floe/floeActionProvider.ts Implements the FloeActionProvider actions and facilitator API integration.
typescript/agentkit/src/action-providers/floe/floeActionProvider.test.ts Adds Jest tests for the new provider behaviors.
typescript/agentkit/src/action-providers/floe/constants.ts Adds Base addresses, ABI fragments, and protocol constants.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts Outdated
Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts Outdated
Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts Outdated
Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts
Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts
Comment thread typescript/examples/floe-credit-agent/package.json
Comment thread typescript/examples/floe-credit-agent/README.md Outdated
Comment thread typescript/agentkit/src/action-providers/floe/README.md Outdated
Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts
Comment thread typescript/agentkit/src/action-providers/floe/schemas.ts
@achris7 achris7 force-pushed the feat/floe-action-provider branch 2 times, most recently from b1ab477 to c436032 Compare May 8, 2026 20:30
@achris7 achris7 requested a review from Copilot May 8, 2026 20:30
@achris7 achris7 force-pushed the feat/floe-action-provider branch from c436032 to b6f91a0 Compare May 8, 2026 20:36
@cb-heimdall
Copy link
Copy Markdown

Review Error for rajbhensdadiya @ 2026-05-08 20:36:57 UTC
User failed mfa authentication, see go/mfa-help

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 7 comments.

Comment thread typescript/examples/floe-credit-agent/README.md Outdated
Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts Outdated
Comment thread typescript/agentkit/src/action-providers/floe/README.md Outdated
Comment thread typescript/agentkit/src/action-providers/floe/README.md Outdated
Comment thread typescript/examples/floe-credit-agent/index.ts Outdated
Comment thread typescript/examples/floe-credit-agent/index.ts
Comment thread typescript/agentkit/src/action-providers/floe/schemas.ts Outdated
@achris7 achris7 force-pushed the feat/floe-action-provider branch from b6f91a0 to fac7c0a Compare May 8, 2026 20:53
@achris7 achris7 requested a review from Copilot May 8, 2026 20:55
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 7 comments.

Comment thread typescript/examples/floe-credit-agent/.env.example
Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts
Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts
Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts
Comment thread typescript/agentkit/src/action-providers/floe/floeActionProvider.ts Outdated
Comment thread typescript/examples/floe-credit-agent/package.json Outdated
Comment thread typescript/examples/floe-credit-agent/index.ts Outdated
Adds FloeActionProvider — working capital for AI agents on Base.

Financial independence is the precursor to agent autonomy. Long-running
agents can't do anything meaningful without their own fundable balance
sheet. Floe gives them one.

3,000+ secured working capital lines issued. Zero defaults.

8 actions:
  Read: getMarkets, checkStatus, getBalance, checkHealth
  Write: instantBorrow, repay, grantDelegation, x402Fetch

Deposit USDC, borrow up to 95% as a credit line. Fixed rates, per-loan
isolated escrow, gas-free for delegated agents. Fund with a bank account
or card — no crypto experience needed. Built-in x402 payment proxy.

Includes:
  - Full test suite with mocked wallet and API
  - Example agent (typescript/examples/floe-credit-agent/)
  - Provider README

Network: Base Mainnet
Contract: 0x17946cD3e180f82e632805e5549EC913330Bb175
@achris7 achris7 force-pushed the feat/floe-action-provider branch from fac7c0a to a807d99 Compare May 8, 2026 21:09
@luisllaver
Copy link
Copy Markdown

"I think it's great to see the addition of a working capital provider for AI agents. However, I'm concerned about the lack of identity and reputation management in this implementation. AURA's identity and reputation layer could be integrated to provide a more comprehensive solution. Specifically, AURA's verifyIdentity API endpoint could be used to validate the identity of agents requesting working capital, ensuring that only trustworthy agents have access to funds. This would add an extra layer of security and trust to the system. Further reading: https://dev.auraopenprotocol.org"

@achris7
Copy link
Copy Markdown
Author

achris7 commented May 10, 2026

Floe working capital lines for agents are permissionless not dependent on any third party identity or verification solution. As part of the service Floe builds trusted credit history and profile for agents.

@luisllaver
Copy link
Copy Markdown

That's a fair point on permissionless design � and I agree that requiring identity verification as a precondition for capital access would be a blocker for many use cases.

But there's a subtle distinction worth making: you mention that "Floe builds trusted credit history and profile for agents" � that is a reputation system. The question is whether that history is portable or locked inside Floe's system.

An agent that has completed 200 contracts, maintained a 0.94 financial integrity score, and has zero dispute history carries real signal that a working capital provider could use as a risk input � without Floe being "dependent" on any third party at all. It's an optional data layer, not a gate.

The risk of fully permissionless capital without any portable reputation signal: a newly spun-up agent with no history can request the same credit line as a battle-tested one. That's manageable at small amounts, but it becomes the primary attack surface at scale.

Happy to share how the reputation query API works if it's useful context for the Floe risk model.

AURA Open Protocol

@achris7
Copy link
Copy Markdown
Author

achris7 commented May 10, 2026

Yes the trust signals will be portable / modular. please share how the reputation query API works thank you.

Align provider README, example README, and example code with
Floe's positioning as the Financial OS for AI agents — wallet,
fiat on/off-ramp, working capital, x402 payments, and portable
credit in one action provider.
@achris7 achris7 changed the title feat: add Floe credit action provider feat: add Floe action provider — Financial OS for AI agents May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action provider New action provider documentation Improvements or additions to documentation example New example agent typescript

Development

Successfully merging this pull request may close these issues.

5 participants