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

HN: Silau – AI detects employee burnout"

1•silau•4m ago•2 comments

Army runs secret wargames under central London

https://www.bbc.com/news/articles/c2e2vjl2ry8o
2•Vermin2000•11m ago•1 comments

The Morale of Tech Workers Is Plunging as Layoffs Mount

https://www.nytimes.com/2026/05/19/business/tech-layoffs-blind.html
2•bookofjoe•15m ago•2 comments

Cache – Meal plans from your local store's weekly sales

https://www.cache.fit/
2•blaughlin•15m ago•1 comments

A Unified Theory of Alignment in Layered Systems

https://a-unified-theory-of-alignment-in-layered-systems.tiiny.site/
1•CitizenOfEarth•16m ago•0 comments

The quiet grief of adult friendship

https://timesofindia.indiatimes.com/blogs/civil-irony/the-quiet-grief-of-adult-friendship/
1•crcastle•16m ago•1 comments

Show HN: SaveNeighbor – food delivery through your own personal network

https://www.saveneighbor.com
1•JJonesRatio•18m ago•0 comments

Canonical to shut Ubuntu Pastebin after 18 years of service

https://www.omgubuntu.co.uk/2026/05/canonical-ubuntu-pastebin-shutdown
1•colinprince•20m ago•0 comments

I built an online leather goods store focused on making gift buying less painful

https://www.vintageleather.com.au/
1•vickeycool•22m ago•1 comments

Tfdraw.dev – turn Terraform plan JSON into an editable architecture diagram

https://tfdraw.dev/demo
1•spoosh•22m ago•0 comments

Show HN: The first (free) podcast ad blocker

https://apps.apple.com/us/app/drea-podcast-ad-blocker/id6759070798
1•hamza_q_•31m ago•0 comments

Fatherhood Dramatically Rewires Your Brain

https://www.sciencealert.com/fatherhood-dramatically-rewires-your-brain-scans-reveal
2•Gaishan•32m ago•1 comments

How AI Talks People Out of Conspiracy Theories–and What We Can Learn from That

https://www.wsj.com/tech/ai/ai-debunks-conspiracy-theories-92eff2c5
3•MilnerRoute•43m ago•1 comments

Honopinion

https://honopinion.com
1•mroshani20•48m ago•0 comments

We Built Secure, Scalable Agent Sandbox Infrastructure

https://twitter.com/larsencc/status/2027225210412470668
1•gmays•49m ago•1 comments

Mvm – a fast virtual machine for Go

https://mvm.sh/
1•birdculture•51m ago•0 comments

Teaching Codex to Test a Voice-First Calendar App

https://www.elicited.blog/posts/teaching-codex-to-test-a-voice-first-calendar
1•justanotheratom•53m ago•1 comments

What were your favorite classic iPod games?

1•wompapumpum•55m ago•0 comments

'What Matters Most'–Google Is Changing Your Gmail Inbox

https://www.forbes.com/sites/zakdoffman/2026/05/23/what-matters-most-google-is-changing-your-gmai...
1•healsdata•1h ago•0 comments

Lessons I Learned from Creating Searx

https://hister.org/posts/lessons-i-learned-from-creating-searx
1•xosc•1h ago•0 comments

How Google's Beta Tester Requirement Created a Fiverr Grey Market

https://danunparsed.com/p/googles-beta-tester-requirement
3•sambellll•1h ago•0 comments

The Black Hole Scientists Say Is Growing Too Fast

https://substack.com/profile/512907875-hamza-ashkar/note/c-264627457
2•hamzaashkar•1h ago•0 comments

Agent evals should feel like real work

https://www.zohaib.cc/blog/agent-evals
1•zed_labs_dev•1h ago•0 comments

Verifying a Caliptra Boot-FSM Bug with Mununu

https://marianocerrutti.substack.com/p/verifying-a-caliptra-boot-fsm-bug
1•hasheddan•1h ago•0 comments

The Densest (Urban) Environment in the World

https://oldurbanist.blogspot.com/2011/09/densest-urban-environment-in-world.html
3•Neuronaut•1h ago•1 comments

Poll: Test

1•sillysaurusx•1h ago•0 comments

The Green Side of the Lua

https://arxiv.org/abs/2601.16670
2•radiator•1h ago•0 comments

Star Citizen game has reached $1B in funding

https://robertsspaceindustries.com/en/funding-goals
8•speckx•1h ago•2 comments

Show HN: JavaScript Crossword – a crossword where the clue = eval(answer)

https://lyra.horse/fun/jscrossword/
1•rebane2001•1h ago•0 comments

No Asterisk Products Manifesto: hardware that works when the servers go down

https://noasteriskproducts.org/
2•brooklyntom•1h ago•0 comments