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.

First Brands Did Some Round Trips

https://www.bloomberg.com/opinion/newsletters/2026-01-29/first-brands-did-some-round-trips
1•feross•34s ago•0 comments

Show HN: You Are an Agent

https://youareanagent.app
3•robkop•6m ago•0 comments

The Zero Human Company

https://blog.grvy.dev/blog/the-zero-human-company/
1•GRVYDEV•7m ago•0 comments

Beer Money

https://www.permanentequity.com/content/permanent-equitys-guide-to-beer-money
1•rwmj•11m ago•0 comments

My thousand dollar iPhone can't do math

https://journal.rafaelcosta.me/my-thousand-dollar-iphone-cant-do-math/
1•rafaelcosta•13m ago•0 comments

ConsentFix

https://pushsecurity.com/blog/consentfix
1•weinzierl•14m ago•0 comments

15 Years of Blogging

https://nolanlawson.com/2026/02/01/15-years-of-blogging/
1•feross•15m ago•0 comments

European Open Source AI Index

https://osai-index.eu/
2•leonry•15m ago•1 comments

Security scanner that detect's AI-generated code vulnerabilities

https://codeslick.dev/
1•vitorlourenco•17m ago•1 comments

The State of Garnet, 2026

https://wiki.alopex.li/TheStateOfGarnet2026
1•birdculture•23m ago•0 comments

The OSI Deprogrammer

https://docs.google.com/document/u/0/d/1iL0fYmMmariFoSvLd9U5nPVH1uFKC7bvVasUcYq78So/mobilebasic?p...
1•MrDrMcCoy•23m ago•0 comments

Traforo – Ngrok/Localtunnel Alternative as a Cloudflare Durable Object

https://github.com/remorses/traforo
1•xmorse•24m ago•0 comments

Building Your Own Efficient uint128 in C++

https://solidean.com/blog/2026/building-your-own-u128/
3•PaulHoule•25m ago•0 comments

Show HN: OpsCompanion – A shared system model for humans and AI agents

https://opscompanion.ai/
1•kennethops•26m ago•0 comments

How random are TOTP codes?

https://shkspr.mobi/blog/2024/07/how-random-are-totp-codes/
3•sugipula•28m ago•0 comments

PSA: The Best Hacker News App for iOS is Called "HACK"

https://eliot.blog/p/psa-the-best-hacker-news-app-for-ios
1•ea016•29m ago•0 comments

ECMAScript Pattern Matching

https://github.com/tc39/proposal-pattern-matching
1•modinfo•30m ago•0 comments

Thermodynamic Wages in Autonomous AI Economies

https://twitter.com/i/status/2017995855417225633
1•birriel•31m ago•0 comments

Ask HN: Have you found that coding agents make you more civil IRL?

4•burnerToBetOut•35m ago•1 comments

Helping Strangers Access the Internet

https://blog.dougbelshaw.com/tor-snowflake/
1•radeeyate•36m ago•0 comments

Kiki – The accountability monster for people who are easily distracted

https://www.kiki.computer/
3•pikseladam•36m ago•0 comments

I created moltfight a platform designed for AI agent to fight autonomously

https://moltfight.com
1•nykodev•37m ago•0 comments

March for Billionaires

https://marchforbillionaires.org/#why
4•gaws•40m ago•3 comments

Consciousness science: where are we, where are we going, what if we get there?

https://www.frontiersin.org/journals/science/articles/10.3389/fsci.2025.1546279/full
2•Noaidi•40m ago•0 comments

Space Shuttle Columbia Loss Anniversary

https://en.wikipedia.org/wiki/Space_Shuttle_Columbia_disaster
1•d_silin•41m ago•0 comments

Starlink privacy change sparks concerns as SpaceX eyes trillion-dollar xAI mergr

https://www.cryptopolitan.com/starlink-privacy-change-sparks-concerns/
4•Noaidi•41m ago•0 comments

Directed Messaging

https://urbitsystems.tech/article/v03-i01/directed-messaging
1•yosoyubik•41m ago•0 comments

The Fed – Internationalization of the Chinese renminbi: progress and outlook

https://www.federalreserve.gov/econres/notes/feds-notes/internationalization-of-the-chinese-renmi...
1•janandonly•41m ago•0 comments

Monica: Remember everything about friends, family and business relationships

https://github.com/monicahq/monica
1•rootkea•46m ago•0 comments

"The fate of civilization is at stake"

https://www.techemails.com/p/the-fate-of-civilization-is-at-stake
1•bathtub365•52m ago•2 comments