frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•1y ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•1y ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•1y ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

I was wrong about Rust on the web [video]

https://www.youtube.com/watch?v=HfRQjix9tU4
1•auraham•14s ago•0 comments

List Your SaaS

https://goodsaas.xyz/
1•lux_revelare•2m ago•0 comments

Should Developers Design?

https://blog.webb.page/WM-104
1•NetOpWibby•2m ago•0 comments

Cloudflare's 2026 Annual Founders' Letter

https://blog.cloudflare.com/cloudflares-2026-annual-founders-letter/
1•willx86•2m ago•0 comments

Reducing .NET AWS Lambda Cold Starts by Adding Memory

https://www.lloydatkinson.net/posts/2026/reducing-dotnet-aws-lambda-cold-starts-by-increasing-mem...
1•theanonymousone•2m ago•0 comments

SeedRouter – One API for LLM, image and video models

https://seedrouter.ai
1•xbaicai•7m ago•0 comments

Researchers Propose Searching the Moon for Microscopic Technosignatures

https://www.seti.org/news/researchers-propose-searching-the-moon/
1•geox•7m ago•0 comments

Coligny Calendar: Gallo-Roman Astronomy

http://www.wasteflake.com/tiki-read_article.php?articleId=46
1•Mr_Minderbinder•9m ago•0 comments

Pragmatic Anthropomorphism, Or: How to Talk to an Autocompleting Cricket

https://blog.lmorchard.com/2026/09/27/pragmatic-anthropomorphism/
1•nizarmah•10m ago•0 comments

Publish facts AI agents can trust, instead of what they scraped

https://profiles.skin/
1•ralphdelblanco•11m ago•0 comments

Show HN: I made my childhood dream come true today, Opus did it

https://twitter.com/riderashgame/status/2103862325455519907
1•testingsaket•12m ago•0 comments

Show HN: FAB – A benchmark for AI agents doing financial due diligence

https://github.com/SecondState-ai/finance-agents-benchmark
1•ELAmrani•12m ago•0 comments

Ask HN: Using AI to develop software while being Anti-AI

1•emn4tor•16m ago•0 comments

Using AI to develop software while being Anti-AI

2•emn4tor•17m ago•1 comments

How to make – and keep – friends as a grownup, according to science

https://www.cnn.com/2026/09/27/health/make-keep-friends-grownup-wellness
1•theanonymousone•18m ago•0 comments

Switzerland rejects stricter interpretation of its neutrality

https://www.bbc.com/news/articles/cm750plvwy9vo
1•theanonymousone•18m ago•0 comments

Weird Machines in Transport Layer Security

https://arxiv.org/abs/2608.13685
1•suhacker256•22m ago•0 comments

Claude Isn't Allowed to Write Me Prose

https://blog.kvit.app/posts/agent-not-allowed-to-write-prose/
1•skolos•24m ago•0 comments

Minecraft is getting its first new dimension in 14 years, called The Sift

https://www.eurogamer.net/minecraft-the-sift-new-dimension-2027
1•mikhael•27m ago•0 comments

Show HN: I Made Agent Office

https://github.com/alminisl/agent-office
1•Ilikeruby•28m ago•1 comments

My hometown shows that high streets have to change or die

https://www.bbc.com/news/articles/crd689de186jo
1•tagawa•29m ago•0 comments

Show HN: A whimsigoth-themed webapp for making relationship date plans

https://build-a-date.cals.cafe/
2•callumgare•31m ago•2 comments

Equal Rights Amendment

https://en.wikipedia.org/wiki/Equal_Rights_Amendment
2•dataflow•32m ago•0 comments

JSON with Comments

https://jsonc.org/
2•notRobot•32m ago•0 comments

Where Fixing Things Becomes a Threat

https://medium.com/@gurvinder372/article-23-where-fixing-things-becomes-a-threat-c5ee5e06fe5b
1•gps372•34m ago•0 comments

LLM capabilities can transfer through unrelated text

https://github.com/myboker/ATD
1•zzy0110•35m ago•0 comments

Show HN: Bounded Loops and Graphs

https://github.com/qualixar/bounded-loops
1•vpbhardwaj•38m ago•0 comments

Why No One Wants to Date Tech Bros

https://www.wired.com/story/tech-bros-dating-palantir-tesla/
2•vrganj•41m ago•0 comments

Show HN: Worduel, a 1v1 Wordle where your guesses also help your opponent

https://worduel.gg/
1•erumaru•45m ago•0 comments

A lot of datacenter networks are run by absolute clowns. Not Amazon's

https://www.theregister.com/networks/2026/08/29/a-lot-of-datacenter-networks-are-run-by-absolute-...
1•JamesAdir•48m ago•0 comments