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

Our Slapdash Cultural Change

https://www.overcomingbias.com/p/our-slapdash-cultural-change
1•paulpauper•36s ago•0 comments

MoneyRank – a daily 60-second game that scores your financial risk instincts

https://moneyrank.onrender.com/
1•abbster52•1m ago•1 comments

Vanderbilt University Plans New Campus in San Francisco

https://www.wsj.com/us-news/education/vanderbilt-san-francisco-cca-california-college-arts-expans...
1•noleary•1m ago•0 comments

Toyota remained top automaker by sales for 6th straight year in 2025

https://asia.nikkei.com/business/automobiles/toyota-remained-top-automaker-by-sales-for-6th-year-...
1•breve•2m ago•0 comments

Device that may be tied to "Havana Syndrome" obtained by U.S. government

https://www.cbsnews.com/news/device-havana-syndrome-obtained-by-u-s-government/
1•mhb•2m ago•0 comments

Why China Is Suddenly Obsessed with American Poverty

https://www.nytimes.com/2026/01/13/business/china-american-poverty.html
3•xnhbx•5m ago•1 comments

More Young Americans Are Unfit to Serve, a New Study Finds. Here's Why

https://www.military.com/daily-news/2022/09/28/new-pentagon-study-shows-77-of-young-americans-are...
1•paulpauper•6m ago•1 comments

Ask HN: Preserving knowledge long-term without a central authority

1•SERSI-S•7m ago•0 comments

Claude Coworks

https://thezvi.substack.com/p/claude-coworks
1•paulpauper•8m ago•0 comments

Former NYC Mayor Eric Adams accused of $2.5M rug pull as NYC Token crashes 80%

https://www.theverge.com/news/861269/former-nyc-mayor-eric-adams-accused-of-2-5-million-crypto-ru...
2•beeandapenguin•8m ago•1 comments

Show HN: Demo of Rust Lettre crate for sending email using SMTP

1•jph•9m ago•1 comments

Show HN: Agentic Equities – track ChatGPT sentiment around stocks

https://www.agenticequities.com/dashboard
1•subtlesoftware•10m ago•0 comments

AI Tools: Image Generation, Video Creation, Website Builders (2026)

https://curateclick.com/blog/2026-best-ai-tools-websites
2•czmilo•11m ago•1 comments

Show HN: Free WCAG accessibility scanner – EAA compliance deadline is June 2025

https://tryinclusiv.com
1•callally_colin•12m ago•0 comments

Even Linus Torvalds is trying his hand at vibe coding (but just a little)

https://arstechnica.com/ai/2026/01/hobby-github-repo-shows-linus-torvalds-vibe-codes-sometimes/
1•spaggot•13m ago•0 comments

Bake Oven Knob

https://en.wikipedia.org/wiki/Bake_Oven_Knob
1•forks•14m ago•0 comments

Phases of Vibe Coding

https://zergai.com/blog/4-phases-vibe-coding
1•idanb•15m ago•0 comments

NewPipe 0.28.1 released bringing tons of fixes and improvements

https://newpipe.net/blog/pinned/announcement/newpipe-0.28.1-released/
1•cyb0rg0•18m ago•1 comments

A Chrome extension plugin featuring a magical particle mouse cursor effect

https://chromewebstore.google.com/detail/crazy-cursor-magical-part/eejfljdgkaanachdckmpmfgjhncihfmd
1•spacedogs•19m ago•0 comments

The Killing Fields of Tehran

https://www.thefp.com/p/the-killing-fields-of-tehran
4•mhb•19m ago•1 comments

Logitech caused its mice to freak out by not renewing a certificate

https://www.theverge.com/news/857377/logitech-macos-logi-options-mouse-certification-fix
1•abdelhousni•23m ago•0 comments

AVX-512: First Impressions on Performance and Programmability

https://shihab-shahriar.github.io//blog/2026/AVX-512-First-Impressions-on-Performance-and-Program...
1•shihab•25m ago•0 comments

StackChan is a cute, community-build, open-source AI desktop robot(Crowdfunding)

https://www.cnx-software.com/2026/01/13/m5stack-stackchan-is-a-cute-open-source-ai-desktop-robot/
2•meganetaaan•25m ago•0 comments

Contrary to popular belief, EV sales growth continued to accelerate in 2025

https://electrek.co/2026/01/13/contrary-to-popular-belief-ev-sales-growth-continued-to-accelerate...
3•breve•26m ago•0 comments

CoreWeave Overhyped AI Computing Capacity After IPO, Suit Says

https://news.bloomberglaw.com/securities-law/coreweave-overhyped-ai-computing-capacity-after-ipo-...
1•zerosizedweasle•32m ago•0 comments

We may know what a healthy gut microbiome looks like

https://www.newscientist.com/article/2508109-we-may-finally-know-what-a-healthy-gut-microbiome-lo...
1•herbertl•35m ago•0 comments

Show HN: Vibe scrape with AI Web Agents, prompt => get data [video]

https://www.youtube.com/watch?v=ggLDvZKuBlU
4•arjunchint•37m ago•1 comments

Smaller houses can lead to happier lives

https://www.washingtonpost.com/climate-environment/2026/01/06/smaller-houses-happier-lives/
4•bigwheels•41m ago•4 comments

A quick blog template built using NextJS and SleekCMS

https://github.com/sleekcms/sleekcms-next-blog
1•yusufnb•44m ago•0 comments

Are You Dead?: The viral Chinese app for young people living alone

https://www.bbc.com/news/articles/c3381r5nnn6o
2•bookofjoe•45m ago•1 comments