somnia-agents

Execute decentralized AI and oracle requests from smart contracts with response validation.

1|1|Updated May 8, 2026
One-click install
npx skills add https://github.com/emrestay/somnia-agents-skills --skill somnia-agents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: somnia-agents
Source: https://github.com/emrestay/somnia-agents-skills/tree/main/skills/somnia-agents
Command: npx skills add https://github.com/emrestay/somnia-agents-skills --skill somnia-agents

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables seamless integration of decentralized, auditable compute tasks such as AI inference, web extraction, and oracle requests within smart contracts, simplifying complex on-chain automation.

Core Features & Use Cases

  • Decentralized Compute Invocation: Allows contracts to invoke off-chain agents like JSON API requests and LLM inference securely and transparently.
  • Request Lifecycle Management: Facilitates the creation, response collection, and finalization of requests with consensus from validator subcommittees.
  • Use Case: A developer can request real-time Bitcoin price data from an API, or perform deterministic web scraping, directly from a contract, enabling trust-minimized data feeds and automation.

Quick Start

Use the somnia-agents skill to invoke an API request for cryptocurrency prices and handle the validated response.

Frequently Asked Questions about somnia-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I invoke decentralized AI and oracle compute jobs from smart contracts?

This Skill automates decentralized, auditable compute requests from smart contracts by invoking off-chain agents for AI inference or oracle data, managing the request lifecycle with validator consensus, and ensuring deterministic, auditable outputs.

What is the best way to fetch real-time cryptocurrency price data securely on-chain?

The best way to fetch real-time cryptocurrency price data securely on-chain is to automate a decentralized oracle request that invokes an off-chain API agent, collects validated responses from a validator subcommittee, and finalizes the auditable result within your smart contract.

Can I perform deterministic web extraction directly within a blockchain application?

Yes, you can perform deterministic web extraction within a blockchain application by invoking decentralized compute jobs that securely execute structured web scraping off-chain, returning validated and auditable data feeds directly to your smart contracts.

Does this approach support off-chain receipt tracking for AI inference auditability?

Yes, decentralized AI compute requests support off-chain receipt tracking for auditability by ensuring deterministic outputs and recording detailed request management data throughout the validator consensus and finalization process.

How do I manage the request lifecycle for decentralized oracle requests?

You manage the request lifecycle for decentralized oracle requests by creating the request, collecting responses from validator subcommittees, and finalizing the validated output, ensuring trust-minimized data feeds and secure external data access for your smart contracts.