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

Instagram chief likens social media addiction to being hooked on a Netflix show

https://www.cnbc.com/2026/02/11/meta-trial-instagram-mosseri-social-media-addiction.html
1•1vuio0pswjnm7•58s ago•0 comments

Show HN: PrintStack – macOS virtual printer to queue and merge PDFs

https://apps.apple.com/us/app/printstack-virtual-printer/id6758392188?mt=12
1•ismailcarlik•1m ago•1 comments

Ask HN: The role of trade unions in tech whistleblowing?

1•bm371613•2m ago•0 comments

Digitizing the "Shokunin": How we encoded a Master's hammer strike into AI

https://yusukekaizen.substack.com/p/the-mathematics-of-intuition-how
1•yusukekaizen•4m ago•1 comments

Ask HN: What are you working on this Thursday?

1•Sayyidalijufri•9m ago•1 comments

Show HN: Free, private developer tools in the browser

https://www.devutilityhub.me/
1•badboyshah•11m ago•0 comments

Sefaria – Torah Study Site

https://www.sefaria.org/texts
1•marysminefnuf•12m ago•1 comments

Digital Archive of East Syriac Liturgical Texts

https://hudra.day
2•marysminefnuf•13m ago•0 comments

Show HN: Docker Compose like process orchestrator for our agents dev environment

https://github.com/maleus-ai/kepler
2•aschen•13m ago•0 comments

Create professional presentations in minutes with AI

https://genppt.ai/
1•wantering•14m ago•0 comments

This year, I will write a shitty GUI for my Emacs clone

https://kyo.iroiro.party/en/posts/this-year-a-shitty-gui/
2•samtrack2019•15m ago•0 comments

Stripe HK: Approved, paid small sum, withheld $12k via dissolved entity

1•poontszho•17m ago•0 comments

Why the dollar may have much further to fall

https://www.economist.com/finance-and-economics/2026/02/05/why-the-dollar-may-have-much-further-t...
1•petethomas•18m ago•0 comments

Why the Economy Hasn't Crashed yet [video]

https://www.youtube.com/watch?v=jOR4wuiPeEQ
1•dataflow•19m ago•0 comments

Sheet Metal Instruments

https://barthopkin.com/metal-sheet-instruments/
1•brudgers•22m ago•0 comments

Cache-aware prefill–decode disaggregation – 40% faster long-context LLM serving

https://www.together.ai/blog/cache-aware-disaggregated-inference
1•zainhsn•27m ago•0 comments

What the Fall of the Telegraph Says About Fossil Fuels

https://oilprice.com/Energy/Energy-General/What-the-Fall-of-the-Telegraph-Says-About-Fossil-Fuels...
1•xbmcuser•27m ago•0 comments

FOSS Arlo Basestation/app self-hosted

https://github.com/frandallfarmer/arlo-open-base-station
1•FRandallFarmer•29m ago•0 comments

Why Coverity Scan service is down?

1•siteshwar•31m ago•0 comments

Migrating a 40k Product Store to Slug-Only URLs (PrestaShop)

https://store.kbizsoft.com/clean-url-seo-friendly-url-in-prestashop.html
2•digi-marketer•31m ago•1 comments

Scientists Figured Out the Problem with Johnson and Johnson's Covid Vaccine

https://www.theatlantic.com/science/2026/02/covid-vaccines-blood-clotting-answer/685966/
3•thunderbong•31m ago•0 comments

OpenAI's Jony Ive-Designed Device Delayed to 2027

https://www.macrumors.com/2026/02/10/openais-jony-ive-designed-device-delayed-to-2027/
2•vinhnx•31m ago•0 comments

Minions: Stripe's one-shot, end-to-end coding agents

https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents
3•vinhnx•32m ago•0 comments

Tesla's Self-Driving Has Gotten Amazing

https://pogueman.substack.com/p/dammit-teslas-self-driving-has-gotten
2•andsoitis•49m ago•0 comments

Google offers buyouts to staff in its business unit who aren't 'all in'

https://www.businessinsider.com/google-offers-exit-packages-to-some-business-unit-employees-2026-2
5•samaysharma•51m ago•0 comments

Indian teacher who created hundreds of learning centers wins $1M Global Prize

https://apnews.com/article/global-teacher-prize-rouble-nagi-54a0fbd628ab062aba569457ff01d21d
2•thunderbong•53m ago•0 comments

ModernBERT in Jax/Flax

https://github.com/arnavw/modernbert-flax
2•alien0006•56m ago•0 comments

My team lead wants 25% of the total bonus pool for himself

https://old.reddit.com/r/founder/comments/1r2lj1g/my_team_lead_wants_25_of_the_total_bonus_pool_for/
2•fanux•57m ago•0 comments

AI Assisted Linguistic Synth:Mapping Proto-Sinaitic Roots in Voynich Manuscript

https://github.com/adrihd/voyters
1•adrihd•57m ago•1 comments

Inside the Secret Smear Machine That's Targeting Hollywood

https://www.hollywoodreporter.com/business/business-news/inside-hollywood-smear-campaign-scandals...
1•mikhael•58m ago•0 comments