frontpage.
newsnewestaskshowjobs

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.

The Fish Who Could Not Imagine Air

https://www.novaspivack.com/essays/the-fish-who-could-not-imagine-air
1•surprisetalk•1m ago•0 comments

An Invasive Mosquito Spreading with Alarming Speed, Threatening Africa's Cities

https://www.nytimes.com/2026/08/04/us/politics/mosquito-africa-anopheles-stephensi.html
1•thelastgallon•2m ago•0 comments

Show HN: Pistachio – Declarative schema management for PostgreSQL

https://github.com/winebarrel/pistachio
1•winebarrel•2m ago•0 comments

Identity and Substitutivity(1971) [pdf]

https://ncatlab.org/nlab/files/Cartwright-IdentityAndSubstitutivity.pdf
1•nill0•2m ago•0 comments

Data-centre reality check could slam brakes on AI earnings boom

https://www.reuters.com/commentary/reuters-open-interest/data-centre-reality-check-could-slam-bra...
1•mapping365•3m ago•0 comments

Show HN: Ssplax – model and solve constrained operational decisions

https://ssplax.com/app/
1•abanoubey•3m ago•0 comments

Social Darwinists to tech bros: tracing the long fight against equality in US

https://www.theguardian.com/books/2026/jul/21/kim-phillips-fein-country-of-lords
1•robtherobber•3m ago•0 comments

Quiddity and Haecceity

https://www.openhorizons.org/quiddity-and-8203haecceity-whatness-and-thisness-in-a-world-of-becom...
1•Bluestein•5m ago•0 comments

Show HN: Create tweet-style and text-first social posts

https://www.postsfromtemplates.com/
1•StanleySathler•6m ago•0 comments

Findphone: Locate a nearby Bluetooth device by signal strength

https://github.com/ben-z/findphone
1•helsinkiandrew•7m ago•0 comments

1899 Missed the Roomba

https://heyjonny.dev/posts/1899-missed-the-roomba/
1•heyjonny•8m ago•0 comments

Every Noise at Once

https://everynoise.com/
1•0x4e•8m ago•1 comments

Ask HN: How do you correct spatial reasoning of LLMs?

2•mstaoru•8m ago•1 comments

Objects That Explain America

https://www.nytimes.com/interactive/2026/08/04/opinion/museum-of-america.html
1•reaperducer•10m ago•0 comments

eBay's 1995 Debut

https://dfarq.homeip.net/ebays-1995-debut/
1•jnord•10m ago•0 comments

Show HN: Ambient Capture Engine

https://github.com/Rafaelpta/litepipe
1•rafaepta•12m ago•0 comments

Why the Legendary Erdős Problems Are Falling to AI

https://www.quantamagazine.org/why-the-legendary-erdos-problems-are-falling-to-ai-20260803/
1•pseudolus•12m ago•0 comments

Show HN: Claude-account now works on macOS too

https://github.com/hamzarehmandeveloper/claude-account/releases/tag/v0.2.0
1•hamza_rehman•15m ago•0 comments

Show HN: OdeCare – radar-based monitoring for aging parents, no wearables

https://odecare.com/
1•decaster3•17m ago•0 comments

How Internet Fighting Works

https://www.smbc-comics.com/comic/2013-04-07
2•fanf2•20m ago•0 comments

Kimi K3 2.78T on One CPU with 8GB RAM

https://github.com/FareedKhan-dev/kimi-k3-in-c
3•OsamaJaber•20m ago•0 comments

Show HN: Hardware requirement calculator for local LLMs

https://soverignplan.app/
1•gkrishna•22m ago•0 comments

Could psilocybin be the key to treating anorexia?

https://www.scientificamerican.com/article/psilocybin-could-kick-start-anorexia-recovery-early-re...
2•tzury•23m ago•0 comments

Show HN: An app to dump notes during the day and plan todos without distraction

https://today.spqrk.net/
1•SPQRK•24m ago•0 comments

Could a change in diet improve mental health? Metabolic psychiatry explained.

https://www.nationalgeographic.com/health/article/metabolic-psychiatry-keto-diet-brain-science
1•bookofjoe•30m ago•1 comments

Yeti Devworks

https://yetidevworks.com/
1•joshka•31m ago•0 comments

Ask HN: I built bribes.fyi, now I am stuck what to with it

1•neverenderr•32m ago•3 comments

Study: People prefer stories written by AI

https://www.cambridge.org/core/journals/judgment-and-decision-making/article/bot-or-not-can-peopl...
2•senordevnyc•34m ago•2 comments

Night-Tower: Over-Engineered Homelab Powered by Fighter Jets and AI Chaos

https://shadowfish.night-tower.net/post/night-tower-homelab-architecture/
1•taubek•34m ago•0 comments

Trump's AI protectionism has come for robotics

https://www.technologyreview.com/2026/08/03/1141056/trumps-ai-protectionism-has-come-for-robotics/
1•rbanffy•36m ago•0 comments