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.

Finding a Way to Produce Powerful Motors Without Rare Earths

https://hackaday.com/2026/01/13/finding-a-way-to-produce-powerful-motors-without-rare-earths/
1•lxm•27s ago•0 comments

What Starcraft Teaches Us About Vibe Coding

https://twitter.com/i/status/2018355437620380032
1•ajay-higgs•4m ago•0 comments

Why child prodigies rarely become elite performers

https://www.economist.com/science-and-technology/2026/01/14/why-child-prodigies-rarely-become-eli...
1•i7l•9m ago•0 comments

Epstein files rife with uncensored nudes and names, despite redaction efforts

https://apnews.com/article/jeffrey-epstein-files-28a28aeebcfd49890e0810eb69992724
2•petethomas•10m ago•0 comments

AI 'slop' is transforming social media – and a backlash is brewing

https://www.bbc.com/news/articles/c9wx2dz2v44o
1•pseudolus•10m ago•0 comments

Build Your Own Insect Drone

https://earthchronicles.substack.com/p/building-a-biomimetic-insect-vision
2•taguniversalsw•11m ago•0 comments

Show HN: Zetoe – Instant AI actions for any selected text

https://chromewebstore.google.com/detail/zetoe-ai-writing-grammar/mfcncdeeeekkjgonodmcjajafigpgnhh
1•prince_singh•15m ago•0 comments

The Future Was Federated

https://news.dyne.org/the-future-was-federated/
1•fiatjaf•16m ago•0 comments

The Wayback Machine's plug-in to fix the internet's broken links problem

https://techcrunch.com/2026/02/04/the-wayback-machine-debuts-a-new-plugin-designed-to-fix-the-int...
2•i7l•17m ago•0 comments

I let the internet control a GitHub repo for 4 weeks

https://old.reddit.com/r/webdev/comments/1qrz4xj/i_let_the_internet_control_a_github_repo_for_4/
1•tomcam•18m ago•0 comments

Bedrock, an A.I. Startup for Construction, Raises $270M

https://www.nytimes.com/2026/02/04/business/dealbook/bedrock-robotics-ai-fundraise.html
1•lxm•19m ago•0 comments

Show HN: A Data Interchange Format

https://github.com/HyaenaTechnologies/configuration/blob/main/documentation/data-interchange.md
1•JohnMatthias•21m ago•0 comments

Novo Nordisk Warns of First Sales Drop Since Start of Ozempic

https://www.nytimes.com/2026/02/04/business/novo-nordisk-wegovy-sales-earnings.html
1•lxm•22m ago•0 comments

Realtime Eval Guide

https://developers.openai.com/cookbook/examples/realtime_eval_guide
1•gmays•23m ago•0 comments

How VPN-free remote access works

1•brintha•28m ago•0 comments

Expansion Microscopy Has Transformed How We See the Cellular World

https://www.quantamagazine.org/expansion-microscopy-has-transformed-how-we-see-the-cellular-world...
1•pseudolus•33m ago•0 comments

Anthropic Is Close to Releasing Claude Sonnet 5, per Rumors

https://www.macobserver.com/news/anthropic-is-close-to-releasing-claude-sonnet-5-per-rumors/
1•itisit•35m ago•0 comments

How to Write Good (Short) Docs

https://tombedor.dev/how-to-write-good-short-docs/
1•jjfoooo4•52m ago•0 comments

Living Through the Cultural Revolution

https://substack.com/home/post/p-186384573
6•expectsomuch•54m ago•1 comments

Fact Check: Did JK Rowling invite Jeffrey Epstein to a play?

https://rainyseason.substack.com/p/fact-check-did-jk-rowling-invite
3•duck_house•55m ago•0 comments

Banks seek out new buyers for Oracle data centre loans

https://www.ft.com/content/90aa74a5-b39d-4131-a138-367726cb18fb
6•zerosizedweasle•56m ago•2 comments

243,000 words dictated in 39 days, speech-to-text changed how I work

https://modulovalue.com/blog/voxtral-transcribe-and-wispr-flow/
2•modulovalue•1h ago•0 comments

Thomistic Philosophical Anthropology: An Interpretive Grid for LLMs

https://michaelmangialardi.substack.com/p/a-thomistic-philosophical-anthropology-llm-pt1
1•mikemangialardi•1h ago•0 comments

Writing an LLM from scratch, part 32B – Interventions: gradient clipping

https://www.gilesthomas.com/2026/02/llm-from-scratch-32b-interventions-gradient-clipping
2•gpjt•1h ago•0 comments

Nearly 40% of Stanford undergraduates claim they're disabled. I'm one of them

https://www.thetimes.com/us/news-today/article/40-percent-stanford-undergraduates-claim-disabled-...
3•mudil•1h ago•1 comments

Same Image, Different Score?

https://halide.cx/blog/chroma-handling/
2•computerbuster•1h ago•0 comments

Show HN: Pygantry – Why ship a whole OS when you just need a Python environment?

https://github.com/erabytse/Pygantry
3•takouzlo•1h ago•0 comments

Trustless crypto escrow for agent to agent (or humans)

https://coinpayportal.com/
1•cranberryturkey•1h ago•0 comments

Recent trends in the work of the Django Security Team

https://www.djangoproject.com/weblog/2026/feb/04/recent-trends-security-team/
2•todsacerdoti•1h ago•0 comments

Relic – a missing secrets artifact for Node and Edge

https://www.npmjs.com/package/@nick-skriabin/relic
1•nicholasrq•1h ago•0 comments