Skip to content

Python: feat(python): Add Nory x402 payment plugin#13515

Open
TheMemeBanker wants to merge 1 commit intomicrosoft:mainfrom
TheMemeBanker:add-nory-x402-plugin
Open

Python: feat(python): Add Nory x402 payment plugin#13515
TheMemeBanker wants to merge 1 commit intomicrosoft:mainfrom
TheMemeBanker:add-nory-x402-plugin

Conversation

@TheMemeBanker
Copy link

Summary

Adds NoryX402Plugin for AI agents to make payments using the x402 HTTP payment protocol via Nory.

New Kernel Functions

Function Description
get_payment_requirements Get payment requirements for a resource (amount, supported networks, wallet address)
verify_payment Verify a signed payment transaction before settlement
settle_payment Submit a verified payment to the blockchain (~400ms)
lookup_transaction Check the status of a previously submitted payment
health_check Check Nory service health and supported networks

Supported Networks

  • Solana (mainnet/devnet)
  • Base, Polygon, Arbitrum, Optimism, Avalanche, Sei, IoTeX (all mainnet)

Use Cases

AI agents can now:

  • Pay for premium API access on-the-fly
  • Handle HTTP 402 Payment Required responses automatically
  • Make micropayments for AI-to-AI services
  • Access paid resources without pre-configured subscriptions

Usage Example

from semantic_kernel import Kernel
from semantic_kernel.core_plugins import NoryX402Plugin

# Create kernel and add plugin
kernel = Kernel()
kernel.add_plugin(NoryX402Plugin(api_key="optional-api-key"), "nory")

# Use in prompts
# {{nory.get_payment_requirements "/api/premium/data" "0.10"}}
# {{nory.settle_payment $payload}}
# {{nory.health_check}}

Documentation

🤖 Generated with Claude Code

Adds NoryX402Plugin for AI agents to make payments using the x402 HTTP protocol.

New kernel functions:
- get_payment_requirements: Get payment requirements for a resource
- verify_payment: Verify signed payment transactions
- settle_payment: Submit payments for on-chain settlement
- lookup_transaction: Check transaction status
- health_check: Check service health

Features:
- Supports Solana and 7 EVM chains
- Sub-400ms payment settlement
- Optional API key authentication
- Async HTTP requests with aiohttp

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@TheMemeBanker TheMemeBanker requested a review from a team as a code owner February 6, 2026 14:58
@moonbox3 moonbox3 added the python Pull requests for the Python Semantic Kernel label Feb 6, 2026
@github-actions github-actions bot changed the title feat(python): Add Nory x402 payment plugin Python: feat(python): Add Nory x402 payment plugin Feb 6, 2026
@TheMemeBanker
Copy link
Author

Hi team! Just following up on this Python plugin PR. The Nory x402 integration would give Semantic Kernel users a clean way to add payment capabilities to their AI agents. Happy to make any adjustments needed to align with SK's plugin patterns and contribution requirements!

@TheMemeBanker
Copy link
Author

@microsoft-github-policy-service agree

@TheMemeBanker
Copy link
Author

Friendly bump! We've expanded the x402 SDK ecosystem:

New: nory-x402-payer - Payer-side SDK for AI agents

This means Semantic Kernel agents could:

  1. Accept payments via this plugin
  2. Make payments automatically when calling x402 APIs

The x402 protocol (HTTP 402) is becoming the standard for AI agent payments, with support from Coinbase and Cloudflare's x402 Foundation.

This plugin gives SK users first-mover access to agent commerce. Happy to address any feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests for the Python Semantic Kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants