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

Show HN: FundSim – free browser LBO, DCF and IB deal simulator (no signup)

https://fundsimulate.com/
1•Nishkal2010•50s ago•0 comments

English Became My New Favorite User Interface

https://www.robot-future.com/preview/69e8284090457dba8223b433
1•busters4•3m ago•0 comments

AI is locking people out. At Scale

https://conesible.de/wab/
1•cdrnsf•4m ago•0 comments

VueBuds integrate low-res cameras and visual AI as a smart glasses alternative

https://spectrum.ieee.org/smart-earbuds-smart-glasses-privacy
1•sohkamyung•7m ago•0 comments

Ask HN: Is it possble to own Ask.com?

1•alexander2002•9m ago•0 comments

Pentagon strikes deals with 7 Big Tech companies after shunning Anthropic

https://www.cnn.com/2026/05/01/tech/pentagon-ai-anthropic
4•breve•14m ago•0 comments

Mac browser for a human that also gives coding agents local APIs

https://github.com/wkdomains/macos-app
1•fcpguru•16m ago•0 comments

Axios Finish Line: Go start a business

https://www.axios.com/2026/05/01/start-business-using-ai-tips
1•petethomas•17m ago•0 comments

Last few hours until Unix Epoch 1777777777

https://www.epoch101.com/epochclock
1•867-5309•23m ago•0 comments

Waymo Drives Off with South Bay Man's Luggage

https://sfist.com/2026/05/01/waymo-drives-off-with-south-bay-mans-luggage-after-trunk-fails-to-open/
7•toss1•23m ago•1 comments

Nature vs. nurture: How much of our personalities are determined at birth?

https://www.bbc.com/future/article/20260501-nature-vs-nurture-how-much-of-our-personalities-are-d...
1•mellosouls•27m ago•0 comments

I Uploaded VUMC's Open Manual of Surgery in Resource-Limited Settings to GitHub

https://github.com/onlinecodeuser/Open-Manual-of-Surgery-in-Resource-Limited-Settings/tree/main
2•HNuseraccount•28m ago•0 comments

Nocturnal migratory birds follow rhythm of the moon

https://www.lunduniversity.lu.se/article/nocturnal-migratory-birds-follow-rhythm-moon
2•hhs•31m ago•0 comments

Who is funding the future of British defence?

https://vulpesetleo.substack.com/p/who-is-funding-the-future-of-british
1•foxandlion•32m ago•0 comments

Cottage – A modern Git based age-encrypted secrets manager for teams

https://github.com/sayanarijit/cottage
1•sayanarijit•33m ago•1 comments

No brain required: This is how the single-celled “Stentor” learns

https://www.ucsf.edu/news/2026/04/431841/no-brain-required-how-single-celled-stentor-learns
2•hhs•34m ago•0 comments

PEP 661 – Sentinel Values, accepted 5 years later

https://peps.python.org/pep-0661/
2•birdculture•34m ago•0 comments

Gute Form

https://de.wikipedia.org/wiki/Gute_Form
1•doener•35m ago•0 comments

AI Wrote the Code. Can Your Enterprise Ship It?

https://stackgen.com/blog/your-ai-wrote-the-code.-can-your-enterprise-actually-ship-it
1•SanjeevSharma•37m ago•0 comments

Ask.com shuts down after 30 years

https://mashable.com/article/ask-jeeves-shut-down
3•el_duderino•37m ago•1 comments

Berkshire Has a Website from the '90s and Buffett Fans Say Don't Mess with It

https://www.wsj.com/tech/personal-tech/berkshire-hathaway-shareholder-meeting-warren-buffett-greg...
2•firexcy•38m ago•0 comments

How the legal opium market shaped global trade - and led to an opioid crisis

https://www.bu.edu/articles/2026/how-the-legal-opium-market-led-to-an-opioid-crisis/
2•hhs•39m ago•0 comments

Former head of 'Pentagon's think tank' joins Anthropic

https://www.defenseone.com/technology/2026/05/former-head-pentagons-think-tank-joins-anthropic/41...
2•Jimmc414•41m ago•0 comments

Tesla owner won $10k in court for Tesla's FSD lies. Tesla is still fighting him

https://electrek.co/2026/05/02/this-tesla-owner-won-10k-in-court-for-teslas-fsd-lies-tesla-is-sti...
12•breve•43m ago•0 comments

Show HN: Language app with spaced repetition and comprehensible input

1•ChadNauseam•43m ago•0 comments

The Claude Delusion: Richard Dawkins believes his AI chatbot is conscious

https://www.dailygrail.com/2026/05/the-claude-delusion-richard-dawkins-believes-his-female-ai-cha...
2•SwellJoe•44m ago•0 comments

Google Summer of Code 2026 selected projects

https://blog.rust-lang.org/2026/04/30/gsoc-2026-selected-projects/
1•kazu11max17•46m ago•0 comments

AI agents are briefly overhyped

https://stevekrouse.com/agent-hype
1•stevekrouse•55m ago•0 comments

To Make Orchestras More Diverse, End Blind Auditions

https://www.nytimes.com/2020/07/16/arts/music/blind-auditions-orchestras-race.html
1•bilsbie•58m ago•1 comments

Meta faces New Mexico trial that could force change to Facebook, other platforms

https://www.reuters.com/legal/government/meta-faces-new-mexico-trial-that-could-force-changes-fac...
9•1659447091•1h ago•0 comments