frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo 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•11mo 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•11mo 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.

Cloud agnostic: not unlike database agnostic

https://site.sebasmonia.com/posts/2026-04-22-cloud-agnostic--not-unlike-database-agnostic.html
1•speckx•58s ago•0 comments

Show HN: Keep up with your coding agents – Git Watchttower

https://gitwatchtower.dev/
2•drummel33•1m ago•0 comments

Health care price transparency (from the comments)

https://marginalrevolution.com/marginalrevolution/2026/04/on-health-care-price-transparency-from-...
2•paulpauper•1m ago•0 comments

Bitcoin Is Digging Deeeeeper

https://alphametrics.substack.com/p/bitcoin-is-digging-deeper
2•bratak•2m ago•0 comments

Balancing Act of Reliability

https://yusufaytas.com/balancing-act-of-reliability
4•benyields•3m ago•0 comments

Show HN: Search tool for Bay Area childcare license violations

https://azuki.vip/childcare/
2•bcrypt•5m ago•0 comments

HP's remote desktop push retreats as Anyware heads for end of life

https://www.theregister.com/2026/04/20/hp_anyware_eol/
2•bhouston•5m ago•1 comments

Why Your RL Agent Is Cheating (and How to Catch It)

https://rewardguard.dev/blog-why-rl-agents-cheat
2•DerekColins•5m ago•0 comments

I built an AI code reviewer bot for GitHub – no external APIs

https://github.com/basilevincenzo/ai-code-reviewer
2•basilevincenzo•9m ago•0 comments

(Disclose Act) Bill to End Dark Money in American Elections

https://kevinmullin.house.gov/2026/03/06/rep-mullin-reintroduces-bill-to-end-dark-money-in-americ...
2•rawgabbit•10m ago•0 comments

EverQuest, the MMO that changed everything (2019)

https://www.pcgamer.com/breaking-the-internet-the-story-of-everquest-the-mmo-that-changed-everyth...
2•awkwardpotato•12m ago•0 comments

Chernobyl 40 Years On

https://yunzi.co.uk/chernobyl-40-years-on/
2•speckx•12m ago•0 comments

Atlantic '41

https://stephanrewind.itch.io/atlantic-41
2•ndr42•13m ago•1 comments

Report of the Yale Committee on Trust in Higher Education [pdf]

https://president.yale.edu/sites/default/files/2026-04/Report-of-the-Committee-on-Trust-in-Higher...
2•loughnane•13m ago•0 comments

OpenAI Reportedly Working on an AI Smartphone to Rival iPhone

https://www.macrumors.com/2026/04/27/openai-working-on-an-ai-smartphone/
2•newusertoday•16m ago•0 comments

Sergey Brin Moves to the Right, with a 'MAGA Girlfriend' by His Side

https://www.nytimes.com/2026/04/27/us/politics/sergey-brin-gg-soto-trump-california-billionaire-t...
3•carabiner•16m ago•0 comments

'Existential Risk': Western Car Companies Are Blowing the Software Race

https://insideevs.com/features/794029/how-western-companies-are-losing-the-software-race/
1•01-_-•17m ago•0 comments

Eliminating AI Failure Modes Using DSLs – The Drafter Pattern

https://georgianailab.substack.com/p/the-drafter-pattern-a-design-pattern
1•nahimn•18m ago•0 comments

Trump admin fires independent board overseeing the National Science Foundation

https://apnews.com/article/national-science-board-nsf-trump-6a23f3ab1b4c6eb131b4e79d95b3536f
4•Bondi_Blue•18m ago•0 comments

OpenAI breaks off Microsoft exclusivity to free up path for Amazon, Google deals

https://www.reuters.com/legal/litigation/microsoft-end-exclusive-license-openais-technology-2026-...
3•01-_-•18m ago•0 comments

Show HN: Erdös Problem Solver Agent

https://github.com/demirbey05/erdos-problem-solver-cli
2•demirbey05•18m ago•0 comments

GitHub Alternatives?

5•krthr•19m ago•3 comments

Critical Perspectives on Provable Security: 15 Years of "Another Look" Papers [pdf]

https://www.math.uwaterloo.ca/~ajmeneze/anotherlook/papers/critper.pdf
2•ogogmad•20m ago•0 comments

Being a Manager: Hiring AI

https://thorprojects.com/2026/04/21/being-a-manager-hiring-ai/
2•speckx•21m ago•0 comments

We Were Unique

https://www.likeus.blog/p/we-were-unique
3•nathan-wall•21m ago•0 comments

BezelBase – Vintage Rolex Reference Database

https://bezelbase.org/wiki/Main_Page
3•pawelb0•21m ago•0 comments

CIA Reportedly Used Secret Quantum Tool to Find Downed Airman in Iran

https://tech.slashdot.org/story/26/04/08/0152253/cia-reportedly-used-secret-quantum-tool-to-find-...
2•us321•23m ago•2 comments

Ask HN: Why is Rust still hard to use as a scripting language?

1•harleyverse•24m ago•0 comments

Use your spare web hosting space as your own cloud drive, with local sync

https://freecloud.wiki
2•Hilliard_Ohiooo•25m ago•0 comments

Progress Engineering: Innovation as Social Design

https://goodscience.substack.com/p/progress-engineering-innovation-as
1•paulpauper•27m ago•0 comments