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.

Show HN: I built RSS feeds for podcast guests

https://poddley.com/guests/cristiano-ronaldo/episodes
1•onesandofgrain•58s ago•0 comments

I Automated a Daily Intelligence Briefing with OpenClaw

https://www.josecasanova.com/blog/openclaw-daily-intel-report
1•gbrindisi•2m ago•0 comments

On screwing up

https://www.seangoedecke.com/screwing-up/
1•medbar•5m ago•0 comments

Replace software-properties-GTK by software-properties-common in desktop seed

https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/2140527
1•josephcsible•5m ago•0 comments

Dear OpenAI and Anthropic Sales Leaders

1•kevinprince•6m ago•0 comments

Searchin' USA

https://usa.conradgodfrey.com/
1•gregsadetsky•11m ago•0 comments

Delusions of World Modeling

https://substack.com/home/post/p-187469245
2•latentoracle•11m ago•0 comments

When cigarette filters were made of asbestos (2023)

https://cancerhistoryproject.com/article/the-history-of-the-asbestos-cigarette-filters/
2•thomassmith65•12m ago•1 comments

Humans can use spectrotemporal correlations to detect rising and falling pitch

https://www.nature.com/articles/s41562-025-02371-7
1•bookofjoe•14m ago•0 comments

Ask HN: Is there real demand for a open source Railway-style PaaS that deploys?

1•theonlyvasudev•14m ago•0 comments

AI ported SimCity to TypeScript in 4 days without reading the code

https://garryslist.org/posts/ai-just-ported-simcity-in-4-days-without-reading-the-code
4•astlouis44•16m ago•1 comments

Elon Musk is betting his business empire on AI

https://www.economist.com/business/2026/02/04/elon-musk-is-betting-his-business-empire-on-ai
6•rurp•18m ago•1 comments

Agent Authorization Profile (AAP) for OAuth 2.0

https://www.aap-protocol.org
1•angelcruzdev•18m ago•0 comments

Show HN: Ktop – a themed terminal system monitor with charts and OOM tracking

https://github.com/brontoguana/ktop
1•brontoguana•20m ago•0 comments

Show HN: Itsyhome – Control HomeKit from your Mac menu bar (open source)

https://itsyhome.app
2•nixus76•22m ago•0 comments

Show HN: An infinite canvas for ChatGPT branches

https://kaleab-ayenew.github.io/chatvas/
1•kalishayish•23m ago•0 comments

Google recovered data from the Nest doorbell camera in Nancy Guthrie case

https://www.cnn.com/us/live-news/nancy-guthrie-savannah-missing-mom-02-10-26
1•busymom0•24m ago•0 comments

Mockingoose 3.0 – Mongoose mocking for Jest and Vitest, now in TypeScript

https://github.com/alonronin/mockingoose
1•alonronin•25m ago•0 comments

Big Food Is Killing Our Children

https://www.thefp.com/p/big-food-is-killing-our-children
1•mhb•25m ago•0 comments

Do you really need Supabase for you vibe coding project

https://app.webjourney.pro/blog/do-you-really-need-supabase
1•yshuolu•25m ago•0 comments

Fine, I'll Try AI

https://technobabble.bearblog.dev/fine-ill-try-ai/
1•encyclopedism•28m ago•0 comments

How and When the Memory Chip Shortage Will End

https://spectrum.ieee.org/dram-shortage
2•pseudolus•28m ago•0 comments

If You're Willing to Pay $70K for a 35-Year-Old Toyota Pickup, Get Some Help

https://www.thedrive.com/news/if-youre-willing-to-pay-70k-for-a-35-year-old-toyota-pickup-get-som...
1•PaulHoule•29m ago•0 comments

Trump's nutrition website directs users to Elon Musk's Grok

https://www.nextgov.com/digital-government/2026/02/trumps-nutrition-website-directs-users-elon-mu...
3•hn_acker•29m ago•0 comments

The Beginning of the End for Big Corporate Medicine

https://www.thebignewsletter.com/p/senators-seek-to-smash-big-medicine
2•toomuchtodo•31m ago•0 comments

Show HN: NOOR – A Sovereign AI Core Built from the Heart of Suffering in Yemen

https://paragraph.com/@0x4fd3729a4fedf54a74b73d93f7f775a1ef520cec/noor-the-sovereign-ai-truth-fro...
2•suffering•31m ago•0 comments

Hims to stop offering GLP-1 pill after FDA warned of crackdown

https://www.reuters.com/legal/litigation/hims-hers-stop-offering-compounded-semaglutide-pill-afte...
2•ains•32m ago•0 comments

Peon-ping – Claude Code notifications that uses Warcraft III Peon voice lines

https://peon-ping.vercel.app/
1•knuckleheads•32m ago•0 comments

The Day the Telnet Died

https://www.labs.greynoise.io/grimoire/2026-02-10-telnet-falls-silent/
3•pjf•32m ago•0 comments

Inhibiting 15-PGDH regenerates joint cartilage in mice (bye knee replacements?)

https://med.stanford.edu/news/all-news/2025/11/joint-cartilage-aging.html
1•CGMthrowaway•34m ago•0 comments