Skip to main content

openai-agents-fidem

Check which company operates an online shop before your agent pays. An OpenAI Agents SDK tool for Fidem, free and without an API key.

For any shop domain, Fidem returns which company the website says it is and whether that company is in an official register (EU VIES, UK Companies House), the domain age, the first archived copy, the TLS certificate, the stated return window, whether the domain is on open phishing lists and whether its robots.txt lets AI agents in. Each fact comes with its source and date. When the shop has proved it controls the domain and represents its company, Fidem signs it and decision is verified.

Install

pip install openai-agents-fidem

It depends only on openai-agents and the Python standard library.

Use

from agents import Agent, Runner
from openai_agents_fidem import check_shop

agent = Agent(
    name="Shopper",
    instructions="Before paying any shop, call check_shop. Only pay on your own when identity_verified is true.",
    tools=[check_shop],
)
result = Runner.run_sync(agent, "Before buying, check who runs tienda-demo.fidemcheck.com.")
print(result.final_output)

check_shop is a regular FunctionTool built with function_tool, so it works with handoffs, guardrails and tracing like any other tool. It runs the lookup in a worker thread, so it does not block the event loop while it waits.

To change how long it waits on a new domain:

from openai_agents_fidem import make_check_shop

tools = [make_check_shop(max_wait_seconds=20)]

Without an agent, as a plain function:

from openai_agents_fidem import fidem_check, is_verified

answer = fidem_check("tienda-demo.fidemcheck.com")
print(answer["decision"], answer["identity_verified"])   # fictitious_demo False
print(is_verified(answer))                              # False

tienda-demo.fidemcheck.com is a fictitious shop that Fidem runs on its own subdomain. It always answers fictitious_demo, never verified.

How to read the answer

Branch on decision. Only verified, with identity_verified: True, means the shop proved its identity and Fidem signed it. is_verified(answer) checks exactly that.

decision Meaning
verified The shop proved the domain and its company, and Fidem signed it.
domain_proven The shop proved the domain on the free plan, with no signed file and no proof of representation.
in_review The shop proved the domain and Fidem is reviewing the company.
not_verified No verification. This is not a sign of fraud: most shops have simply not done it.
revoked, expired, invalid_file There was a verification and it no longer holds.
fictitious_demo Fidem's fictitious example. Never pay it.
no_data The check could not finish. Ask the user.

If phishing_lists.code is listed, the domain is on an open list of active phishing sites. Do not pay.

For a company, mvf_file.representation_proven: False means Fidem signed it during the transition period, which is allowed until 1 January 2027.

The first lookup of a domain Fidem has never seen can come back with lookup_status: "in_progress". The tool waits retry_after_seconds and asks again, for up to 45 seconds, so the agent does not act on a partial answer.

If you prefer MCP, Fidem also runs a remote MCP server at https://fidemcheck.com/mcp, which the Agents SDK can use through MCPServerStreamableHttp: https://fidemcheck.com/openai-agents-sdk-check-online-shop.html

More

MIT licence. Fidem, hola@fidemcheck.com.

Metadata

Release files for openai-agents-fidem 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openai-agents-fidem 0.1.0
File Size Uploaded Provenance Actions
openai_agents_fidem-0.1.0.tar.gz 5.6 kB Without provenance Details for openai_agents_fidem-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openai-agents-fidem 0.1.0
File Interpreter ABI Platform Actions
openai_agents_fidem-0.1.0-py3-none-any.whl Python 3 none any Details for openai_agents_fidem-0.1.0-py3-none-any.whl

Total release size: 11.3 kB

Release files / openai_agents_fidem-0.1.0.tar.gz

Download URL openai_agents_fidem-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f41c96cd0290fb7c0425f77459315784b00384396231dc5e91fdd5b262a71bf7
BLAKE2b-256 checksum
How to use checksums
b2c0ffd74cfec1299803f80c4c4552243cecfd73b1f85f71d1f7bdbd03c7b028
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / openai_agents_fidem-0.1.0-py3-none-any.whl

Download URL openai_agents_fidem-0.1.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6c31454bd003d1de183be51b799a6160f182f33df090e2afdca87070da27e42
BLAKE2b-256 checksum
How to use checksums
28db862ed017900cf8dafd4e3bf637fb61a122f27f5df5c9ec2c049404f0f665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for openai-agents-fidem 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page