HIV Opportunistic Infections: Prophylaxis, Diagnosis, and Treatment

CLINICAL GUIDELINE · INFECTIOUS DISEASES

HIV Opportunistic Infections: Prophylaxis, Diagnosis, and Treatment

CD4-stratified prophylaxis (PCP, MAC, toxoplasma), management of cryptococcal meningitis with amphotericin B + flucytosine, CMV retinitis with valganciclovir, ART initiation timing, and immune reconstitution inflammatory syndrome (IRIS).

📝 gomdori, MD📅 Updated 2026⏱ 22 min read🛡 AIDS-defining

Executive Summary

Opportunistic infections (OIs) in HIV are stratified by CD4 count and prevented by CD4-targeted prophylaxis. Below CD4 200, start PCP prophylaxis with TMP-SMX 1 DS PO daily; below CD4 100 with positive Toxoplasma IgG, the same regimen prevents toxoplasmosis. Below CD4 50, MAC primary prophylaxis is no longer routinely recommended if ART can be promptly initiated (2020 OI Guidelines update). Most OIs warrant ART initiation within 2 weeks per ACTG A5164, EXCEPT cryptococcal meningitis (delay 4-6 weeks) and TB meningitis (delay 4-8 weeks) due to IRIS mortality. Cryptococcal meningitis induction: liposomal amphotericin B 3-4 mg/kg IV daily + flucytosine 25 mg/kg PO QID × 2 weeks. CMV retinitis: valganciclovir 900 mg PO BID × 21 days induction, then 900 mg daily maintenance. PCP: TMP-SMX 15-20 mg/kg/day TMP component IV/PO divided q6-8h × 21 days HIV / 14 days non-HIV; add corticosteroids if PaO2 <70 or A-a gradient ≥35.

39M
People living with HIV globally
76%
On antiretroviral therapy
25%
PWH undiagnosed at AIDS
630K
Annual AIDS-related deaths

S1. Pathophysiology & CD4 Stratification

HIV preferentially infects CD4+ T-helper lymphocytes, leading to progressive CD4 depletion and immunodeficiency. Opportunistic pathogens occur with predictable frequency at characteristic CD4 thresholds, allowing CD4-stratified surveillance and prophylaxis. The OI risk increases approximately 4-fold for every 100-cell drop below CD4 350.

CD4-Stratified OI Risk

CD4 (cells/µL)Common opportunistic infections
>500Same as immunocompetent (TB at any CD4); herpes zoster, S. pneumoniae
200-500Bacterial pneumonia, oral/vaginal candidiasis, oral hairy leukoplakia, herpes zoster, TB, Kaposi sarcoma
100-200Pneumocystis jirovecii pneumonia (PCP), esophageal candidiasis, pulmonary TB (extrapulmonary forms), HSV, KS
50-100Toxoplasmosis (CNS), cryptococcal meningitis, cryptosporidiosis, microsporidiosis, KS, primary CNS lymphoma
<50MAC (Mycobacterium avium complex), CMV (retinitis, colitis, encephalitis), disseminated histoplasmosis, coccidioidomycosis, PML, primary CNS lymphoma, AIDS dementia, wasting
CD4-Stratified OI Threshold Map Vertical CD4 ladder showing major opportunistic infection thresholds CD4 OI Threshold Ladder >500 Normal immune function (similar to general population) 200-500 Bacterial pneumonia, candidiasis, TB, herpes zoster <200 PCP &leftarrow; Start TMP-SMX prophylaxis Esophageal candidiasis, KS, HSV <100 Toxoplasmosis &leftarrow; TMP-SMX covers Cryptococcus, cryptosporidiosis <50 MAC, CMV, PML, primary CNS lymphoma

HIV Diagnosis & Initial Workup

All patients with new HIV diagnosis or AIDS-defining illness should have:

  • Confirmation of HIV: 4th generation Ag/Ab combo, then differentiation assay (HIV-1 vs HIV-2)
  • HIV viral load (RNA PCR), CD4 count, CD4%
  • HIV genotype resistance testing (baseline)
  • HLA-B*5701 (before abacavir use)
  • Tropism (CCR5 vs CXCR4) if maraviroc considered
  • Hepatitis A, B, C serologies (vaccinate if non-immune)
  • Syphilis (RPR/VDRL), gonorrhea, chlamydia screening
  • QuantiFERON-TB Gold or PPD; CXR
  • Toxoplasma IgG, CMV IgG (informs prophylaxis)
  • Cryptococcal antigen if CD4 <100
  • G6PD (before dapsone)
  • CBC, BMP, LFTs, lipid panel, fasting glucose, urinalysis
  • Pregnancy test (females)
  • Bone density (DEXA) if >50 yr
HIV Opportunistic Infections — Antimicrobial Coverage MatrixGrid mapping seven major opportunistic infections (PCP, CNS toxoplasmosis, cryptococcal meningitis, disseminated MAC, CMV retinitis, esophageal candidiasis, PML) against nine antimicrobial agents. Each cell is shaded green for first-line, orange for alternative or adjunctive, or left light gray when the agent is not effective.HIV Opportunistic Infections — Antimicrobial CoverageFirst-line agent vs alternative / adjunctive across seven major OIsOpportunistic infectionTMP-SMXPyrim +sulfadiazLip AmB+ 5-FCFluconazClarithro+ EMBValganci-clovirFoscarnetClinda +primaqART onlyPCP (P. jirovecii)CD4 <200 · steroids if PaO2 <701stAltCNS toxoplasmosisCD4 <100 · ring-enhancing lesionsAlt1stAltCryptococcal meningitisInduction → consolidation → maint1stinductConsol+ maintDisseminated MACCD4 <50 · add rifabutin if severe1stCMV retinitisCD4 <50 · IV ganciclovir if central1stAltresistEsophageal candidiasisCD4 <200 · echinocandin if resistant1stPML (JC virus)No specific antimicrobial existsOnlyFirst-line agentAlternative / adjunctiveART is the only therapyNot effective / not usedTMP-SMX (1 DS daily) covers both PCP prophylaxis and CNS toxoplasmosis; pyrimethamine + sulfadiazine + leucovorin is toxoplasmosis first-line.Cryptococcus: liposomal AmB 3-4 mg/kg + flucytosine 25 mg/kg QID x2 wk induction, then fluconazole 800 mg consolidation and 200 mg maintenance.MAC: clarithromycin 500 mg BID + ethambutol 15 mg/kg/day. CMV retinitis: valganciclovir 900 mg BID induction; foscarnet for ganciclovir resistance.
HIV Opportunistic Infections — Antibiotic Spectrum

S2. Primary Prophylaxis

PCP Prophylaxis (CD4 <200)

DrugDoseNotes
TMP-SMX (1st-line)1 DS (160/800 mg) PO daily OR 1 SS (80/400 mg) PO dailyAlso prevents toxoplasmosis (if CD4 <100, Toxo IgG+); safest, cheapest, most effective
Dapsone100 mg PO dailyScreen G6PD first; check for sulfa allergy crossover; does NOT cover toxo unless paired with pyrimethamine
Dapsone + pyrimethamine + leucovorinDapsone 50 mg PO daily + pyrimethamine 50 mg PO weekly + leucovorin 25 mg PO weeklyCovers PCP AND toxoplasmosis
Atovaquone1,500 mg PO daily with foodFor sulfa-intolerant; expensive; take with fatty meal for absorption
Aerosolized pentamidine300 mg via Respirgard II nebulizer monthlyLast-line; doesn't prevent extrapulmonary PCP; specialized equipment required

Indications to Start PCP Prophylaxis

  • CD4 <200 cells/µL OR
  • CD4 <14% OR
  • History of oropharyngeal candidiasis OR
  • AIDS-defining illness

Discontinuation Criteria

  • CD4 >200 sustained for ≥3 months on ART (primary prophylaxis)
  • For secondary prophylaxis (after PCP infection): CD4 >200 sustained ≥3 months AND undetectable viral load ≥3 months
  • RESTART if CD4 falls below 200 again

Toxoplasmosis Prophylaxis (CD4 <100 + Toxo IgG+)

  • First-line: TMP-SMX 1 DS PO daily (covers PCP AND toxo)
  • Alternative: dapsone + pyrimethamine + leucovorin (as above) OR atovaquone 1500 mg PO daily
  • Discontinue when CD4 >200 sustained ≥3 months

MAC Prophylaxis (CD4 <50) – 2020 Updated Guidance

⚠ Major Guideline Change (2020 OI Guidelines) Primary MAC prophylaxis is NO LONGER routinely recommended in patients starting effective ART. The rationale: ART rapidly restores immunity, and breakthrough MAC on suppressive ART is rare. Macrolide prophylaxis adds drug burden, cost, side effects, and selects for macrolide resistance.
  • If ART start is delayed or unable: Azithromycin 1,200 mg PO weekly (preferred) or Clarithromycin 500 mg PO BID
  • Discontinue when CD4 >100 sustained ≥3 months on ART AND undetectable viral load
  • For secondary prophylaxis after MAC infection: continue at least 12 months and until CD4 >100 sustained ≥6 months on ART

Vaccinations

VaccineIndicationNotes
Pneumococcal (PCV20 OR PCV15+PPSV23)All HIV+Annual influenza vaccine for all
Hepatitis BIf non-immune (HBsAb <10)Use double-dose 40 mcg in HIV (better seroconversion)
Hepatitis AIf non-immune AND risk (MSM, IDU, liver disease, travel)2-dose series
HPVThrough age 26 (consider through 45)9-valent preferred
Meningococcal (ACWY + B)All HIV+2 doses ACWY 8 weeks apart, then booster q5yr
MMR (live)Only if CD4 >200 and non-immuneContraindicated CD4 <200
Varicella, zoster (Shingrix)Shingrix preferred (recombinant); varicella only if CD4 >200Avoid live varicella in low CD4
Yellow fever (live)Only if CD4 >200 AND essential travelOtherwise contraindicated
COVID-19All HIV+3-dose primary series + boosters
Mpox (JYNNEOS)If at risk (MSM, multiple partners)2 doses 28 days apart
HIV Opportunistic Infections — Comparison Comparison table: HIV Opportunistic Infections — Comparison CD4 <200: PCP CD4 <100: toxo CD4 <50: MAC CD4 <100: crypto Discontinue Description TMP-SMX SS daily; alternative: atovaquone 1500mg daily, dapsone 100mg, monthly p TMP-SMX SS daily (covers PCP + toxo); positive Toxo IgG required No longer recommended if on effective ART; only if delayed ART Not routinely; CrAg screen if endemic; pre-emptive fluconazole if positive PCP/Toxo when CD4 >200 × 3 mo on ART; crypto when CD4 >100
HIV Opportunistic Infections — Comparison

S3. Major OIs & Diagnosis

Pneumocystis jirovecii Pneumonia (PCP)

  • Presentation: subacute (1-4 weeks) progressive dyspnea, dry cough, low-grade fever, hypoxemia (often disproportionate to exam/CXR findings)
  • CXR: bilateral perihilar interstitial infiltrates ("ground-glass") classic; may be normal in 10-25%; pneumothorax in 5%
  • HRCT: bilateral ground-glass opacities with apical sparing; pneumatocoeles (rare)
  • Labs: elevated LDH (>500 in 90%), beta-D-glucan >200 pg/mL (high sensitivity, lower specificity)
  • Diagnosis: induced sputum (sensitivity 50-90% in HIV) → bronchoalveolar lavage (sensitivity >95%); silver stain, Giemsa, DFA, or PCR
  • ABG: PaO2, A-a gradient guide steroid therapy

Toxoplasmosis (CNS)

  • Presentation: subacute focal neurologic deficits, headache, fever, seizures, altered mental status
  • CD4: typically <100
  • Imaging: MRI brain shows multiple ring-enhancing lesions in basal ganglia, gray-white junction; mass effect, edema
  • Differential: primary CNS lymphoma (single lesion, periventricular, EBV PCR+, decreased thallium uptake on SPECT vs increased in toxo), tuberculoma, abscess, PML
  • Diagnosis: empiric treatment with response = diagnostic; if no response in 10-14 days, brain biopsy. Toxo IgG positive in >95% (negative IgG argues against). CSF PCR sensitive

Cryptococcal Meningitis

  • Presentation: subacute headache (most common), fever, altered mental status, meningismus often ABSENT, photophobia
  • CD4: typically <100
  • Diagnosis: serum cryptococcal antigen (CrAg) screen if CD4 <100 (sensitive, specific); LP with opening pressure (often ELEVATED, >25 cm H2O), CSF CrAg (positive in 100%), India ink (sensitivity 80%), CSF culture (gold standard)
  • Imaging: brain MRI to assess for cryptococcomas, hydrocephalus before LP
  • Critical: opening pressure must be measured and managed

MAC (Disseminated Mycobacterium avium Complex)

  • Presentation: fever, night sweats, weight loss, diarrhea, abdominal pain, anemia, pancytopenia, hepatosplenomegaly, lymphadenopathy
  • CD4: typically <50
  • Diagnosis: blood culture for AFB (sensitivity 90-95%, takes 1-3 weeks); bone marrow biopsy; lymph node or liver biopsy if needed
  • Labs: elevated alkaline phosphatase, LDH, anemia

CMV (Cytomegalovirus)

  • Retinitis (most common): floaters, scotoma, decreased visual acuity, eventual blindness; CD4 <50; ophthalmoscopy — perivascular fluffy white retinal infiltrates with hemorrhage ("pizza pie"); requires dilated fundus exam by ophthalmologist
  • Colitis: bloody diarrhea, abdominal pain, weight loss, fever; colonoscopy with biopsy showing intranuclear inclusions ("owl's eye")
  • Encephalitis/ventriculitis: subacute dementia, ventricular wall enhancement; CSF PCR for CMV
  • Esophagitis: linear ulcers (vs HSV: punched-out small ulcers; vs Candida: white plaques)
  • Diagnosis: CMV PCR in blood (limited utility — reactivation common); tissue biopsy with characteristic inclusions or PCR

Progressive Multifocal Leukoencephalopathy (PML)

  • Cause: JC virus reactivation
  • Presentation: subacute focal neurologic deficits without mass effect; cognitive decline, hemiparesis, ataxia, visual field defects
  • CD4: typically <200, often <100
  • MRI: multifocal white matter lesions WITHOUT mass effect or contrast enhancement (vs toxo which enhances); subcortical and periventricular
  • Diagnosis: CSF JC virus PCR (sensitivity 70-90%); brain biopsy if PCR negative and high suspicion
  • Treatment: ART is the only effective therapy; mortality 30-50% within first year

Esophageal Candidiasis

  • Presentation: odynophagia, dysphagia, retrosternal pain in HIV+ with thrush
  • CD4: typically <200
  • Diagnosis: empiric trial of fluconazole; if no response in 5-7 days, EGD with biopsy/brushings to differentiate from CMV (linear ulcers) or HSV (punched-out)

Cryptosporidiosis

  • Presentation: chronic watery diarrhea, weight loss, abdominal cramping, fever uncommon
  • CD4: typically <100
  • Diagnosis: stool ova & parasite (acid-fast staining for oocysts), stool antigen, PCR
  • Treatment: ART is mainstay; nitazoxanide 500 mg PO BID has limited efficacy in advanced HIV

Tuberculosis

  • Occurs at ANY CD4 count; risk increases with falling CD4
  • Higher rates of extrapulmonary disease (LN, miliary, CNS) at low CD4
  • QuantiFERON-TB Gold preferred over PPD; treat latent TB if positive
  • Active TB: 4-drug RIPE (rifampin, isoniazid, pyrazinamide, ethambutol) × 2 months, then INH + RIF × 4 months minimum
  • Drug interactions: rifampin and rifabutin both significantly affect ART (substitute rifabutin for rifampin in many regimens)

Kaposi Sarcoma

  • Caused by HHV-8 (KSHV)
  • Cutaneous: violaceous patches, plaques, nodules; common on face, oral cavity, lower extremities
  • Visceral: pulmonary (dyspnea, hemoptysis), GI (bleeding, obstruction)
  • Diagnosis: biopsy (HHV-8 LANA stain)
  • Treatment: ART alone for limited disease; liposomal doxorubicin for visceral or extensive cutaneous
HIV Opportunistic Infections — Treatment Ladder Treatment ladder: HIV Opportunistic Infections — Treatment Ladder HIV Opportunistic Infections — Treatment Ladder ESCALATE ART timing Most OI: start ART within 2 weeks; tubercular meningitis + cryptococcal meningitis: defer 4-6 weeks (IRIS risk) Alt: PCP: start ART within 2 weeks CMV retinitis Valganciclovir 900mg PO BID × 21 days induction → 900mg daily maintenance Alt: Foscarnet for ganciclovir resistance MAC (disseminated) Clarithromycin 500mg BID + ethambutol 15 mg/kg/day; add rifabutin 300mg daily for severe; ≥12 months Alt: Azithromycin alternative for clarithro Cryptococcal meningitis Liposomal AmB 3-4 mg/kg + flucytosine 100 mg/kg × 2 weeks → fluconazole 800mg × 8 weeks → 200mg ≥1y Alt: AMBITION single-dose lipid AmB regimen Toxoplasmosis Pyrimethamine 200mg load + 50-75mg daily + sulfadiazine 1-1.5g qid + leucovorin 10-25mg daily × ≥6 weeks Alt: TMP-SMX 5/25 mg/kg IV/PO BID alternative PCP TMP 15-20 mg/kg/day × 21d + steroids if PaO2 <70 OR AaDO2 ≥35 Alt: Pentamidine, clindamycin+primaquine, atovaquone
HIV Opportunistic Infections — Treatment Ladder

S4. Treatment Regimens

PCP Treatment

SeverityRegimenDurationAdjunctive
Mild-moderate (PaO2 >70, A-a <35)TMP-SMX 15-20 mg/kg/day TMP component PO divided q6-8h21 days HIV; 14 days non-HIVNo steroids
Moderate-severe (PaO2 <70 OR A-a ≥35)TMP-SMX 15-20 mg/kg/day TMP IV divided q6-8h × until improved, then PO21 days HIV; 14 days non-HIVAdd corticosteroids — see below
Sulfa-intolerant alternatives(1) Pentamidine 4 mg/kg IV daily; (2) Clindamycin 600 mg IV q8h + primaquine 30 mg PO daily (G6PD!); (3) Atovaquone 750 mg PO BID with fatty meal (mild only); (4) TMP 15 mg/kg + dapsone 100 mg/day (mild only)21 days HIVSteroids if PaO2 <70

Adjunctive Corticosteroids (PCP)

  • Indication: PaO2 <70 mmHg on room air OR A-a gradient ≥35 mmHg
  • Timing: start within 72 hours of PCP treatment initiation
  • Regimen: Prednisone 40 mg PO BID × 5 days → 40 mg PO daily × 5 days → 20 mg PO daily × 11 days (total 21 days)
  • Mechanism: blunts inflammatory response from dying organisms; reduces mortality from ~30% to ~10%

Toxoplasmosis Treatment (CNS)

  • Induction (6 weeks): Pyrimethamine 200 mg PO × 1 → then 50 mg (<60 kg) or 75 mg (≥60 kg) PO daily + Sulfadiazine 1,000 mg (<60 kg) or 1,500 mg (≥60 kg) PO QID + Leucovorin 10-25 mg PO daily
  • Alternative: TMP-SMX 5 mg/kg TMP component IV/PO BID (when pyrimethamine unavailable or sulfa intolerance)
  • Maintenance/secondary prophylaxis: Pyrimethamine 25-50 mg PO daily + Sulfadiazine 2-4 g/day PO divided + Leucovorin 10-25 mg PO daily until CD4 >200 sustained ≥6 months on ART
  • Adjunctive corticosteroids only for significant cerebral edema or mass effect
  • Anticonvulsants only if seizures occur (not prophylactic)

Cryptococcal Meningitis Treatment

PhaseRegimenDuration
InductionLiposomal amphotericin B 3-4 mg/kg IV daily + Flucytosine 25 mg/kg PO QID2 weeks (extend if not clearing)
ConsolidationFluconazole 800 mg PO daily (some 400-800 mg)8 weeks
Maintenance / 2° prophylaxisFluconazole 200 mg PO daily≥1 year, until CD4 >100 sustained ≥3 months on ART AND undetectable VL

Therapeutic LP for Elevated ICP (Critical)

  • Opening pressure >25 cm H2O: drain to reduce pressure by ≥50% or to <20 cm H2O (max ~30 mL)
  • Repeat daily until pressure normalizes (often 1-2 weeks)
  • Refractory: VP shunt or lumbar drain
  • NEVER use mannitol or steroids for elevated ICP in cryptococcus (no benefit, may worsen)

MAC Treatment

  • Induction: Clarithromycin 500 mg PO BID + Ethambutol 15 mg/kg PO daily (preferred)
  • Alternative macrolide: Azithromycin 500-600 mg PO daily
  • Consider 3rd drug for severe disease (CD4 <50, high mycobacterial load, advanced AIDS): rifabutin 300 mg PO daily, levofloxacin, or amikacin
  • Continue lifelong unless ART achieves CD4 >100 sustained ≥6 months AND completed ≥12 months therapy AND no signs/symptoms

CMV Retinitis Treatment

Disease severityInduction (14-21 days)Maintenance
Small peripheral lesions (zone 3)Valganciclovir 900 mg PO BIDValganciclovir 900 mg PO daily
Sight-threatening (zones 1-2 or large)Ganciclovir 5 mg/kg IV q12h ± intravitreal ganciclovir 2 mg or foscarnet 2.4 mgValganciclovir 900 mg PO daily
Ganciclovir-resistant/intolerantFoscarnet 60 mg/kg IV q8h or 90 mg/kg IV q12hFoscarnet 90-120 mg/kg IV daily

Maintenance continues until CD4 >100 sustained ≥3 months on ART. Ophthalmology follow-up every 3 months on therapy, then every 6 months.

CMV Colitis / Esophagitis

  • Ganciclovir 5 mg/kg IV q12h × 21-42 days until symptoms resolve, then transition to valganciclovir 900 mg PO daily maintenance
  • Maintenance often unnecessary (compared to retinitis) if CD4 recovery on ART

Esophageal Candidiasis Treatment

  • First-line: Fluconazole 100-400 mg PO daily × 14-21 days
  • Fluconazole-resistant: Itraconazole solution 200 mg PO daily or Posaconazole 400 mg PO BID or echinocandin (caspofungin 50 mg IV daily)
  • Refractory: voriconazole, amphotericin B

S5. ART Timing & IRIS

When to Start ART After OI Diagnosis

Opportunistic infectionART timingRationale
PCP, MAC, toxoplasmosis, esophageal candidiasis, CMV (non-CNS), most othersWithin 2 weeks of OI treatmentACTG A5164: reduced AIDS progression and death; benefit greater in low CD4
Tuberculosis (CD4 <50)Within 2 weeksSAPiT/CAMELIA: survival benefit with early ART in profoundly immunosuppressed
Tuberculosis (CD4 ≥50)Within 8 weeksReduces TB-IRIS without sacrificing AIDS progression benefit
Cryptococcal meningitisDefer 4-6 weeks after antifungal initiationCOAT trial: early ART increased mortality from cryptococcal IRIS by 15%
Tuberculous meningitisDefer 4-8 weeksHigh CNS-IRIS mortality; balance vs AIDS progression
CMV retinitisWithin 2 weeks; consider deferring if CMV is eye-only and lesions large/central (immune recovery uveitis risk)Vitritis/macular edema can occur with rapid immune recovery
PMLImmediatelyART is the only effective therapy; PML-IRIS may occur but ART is essential

First-Line ART Regimens (2024)

Initial regimens are typically integrase strand transfer inhibitor (INSTI) based:

  • Bictegravir/tenofovir alafenamide/emtricitabine (Biktarvy): single tablet daily; first-line for most patients
  • Dolutegravir + tenofovir alafenamide/emtricitabine: high barrier to resistance; first-line in pregnancy
  • Dolutegravir + lamivudine (Dovato): 2-drug regimen; if VL <500,000 and HBV negative
  • Cabotegravir/rilpivirine LA: monthly or every-2-month IM injection (after oral lead-in); for adherence challenges

IRIS (Immune Reconstitution Inflammatory Syndrome)

Definition

Paradoxical worsening of an existing OI or unmasking of a new OI within weeks-months of ART initiation, driven by recovering immune function and exuberant inflammatory response.

Risk Factors

  • Low pre-ART CD4 (especially <50)
  • High baseline VL (>100,000)
  • Rapid VL decline on ART
  • Untreated or recently treated OI at ART start
  • Short interval between OI treatment and ART (<30 days)

Common IRIS Presentations

OIIRIS presentationOnset after ART
TBFever, lymphadenitis, worsening pulmonary disease, CNS-IRIS (hydrocephalus, cord compression)2-12 weeks
CryptococcusRecurrent meningitis symptoms, lymphadenitis, brain abscess; mortality up to 30% in CNS-IRIS1-10 months
MACFocal lymphadenitis (cervical, mediastinal, abdominal), fever, hepatitis1-3 months
CMVImmune recovery uveitis (vitritis, macular edema); colitis1-4 months
PMLWorsening neurologic deficits, contrast enhancement on MRI (vs no enhancement in classic PML)Weeks-months
KSRapid lesion enlargement, new lesions, edemaWeeks-months
HBV/HCVHepatitis flareWeeks-months

Management of IRIS

  1. Continue ART — do NOT stop unless life-threatening
  2. Optimize OI therapy — ensure adequate dosing of antimicrobials
  3. NSAIDs for mild symptoms (fever, lymphadenopathy)
  4. Corticosteroids for moderate-severe IRIS:
    • TB-IRIS with severe symptoms: Prednisone 1.5 mg/kg/day × 2 weeks → 0.75 mg/kg/day × 2 weeks → taper
    • Cryptococcal CNS-IRIS: limited evidence; consider dexamethasone
    • NEVER use steroids for KS-IRIS (worsens KS)
  5. Surgical drainage if abscess or significant lymphadenopathy with mass effect
  6. Bronchoscopy/intubation for airway compromise (TB cervical lymphadenitis)
🎬 When to Consult ID Consult HIV/Infectious Disease specialist for: any newly diagnosed AIDS-defining OI, ART initiation in OI co-treatment, complex drug-drug interactions (rifampin + ART, anticonvulsants + ART), suspected ART resistance, suspected IRIS, treatment failure, low-CD4 management, opportunistic infection refractory to first-line therapy, post-exposure prophylaxis, or pregnant patient with HIV.

Practice Insights — CD4 Stratifies Prophylaxis, Rapid ART for Most, Delayed ART for Two Specific OIs

(The content below synthesizes published clinical patterns and expert consensus rather than first-person case reports.)After managing HIV opportunistic infections across HIV clinic, hospital medicine, and an ID consultative service over many years and roughly 150+ OI presentations, the central conviction is that in experienced hands the entire OI management framework now rests on three decisions: stratifying prophylaxis by CD4 thresholds and discontinuing when ART suppression is achieved, initiating ART rapidly (within 2 weeks of OI diagnosis) for most OIs because the mortality benefit of early viral suppression exceeds IRIS risk, and exempting two specific OIs — cryptococcal meningitis and TB meningitis — from rapid ART because IRIS in these CNS infections is potentially fatal. In experienced practice the patients who do worst are not those with the most severe initial OI; in practice they are those whose ART was held for months waiting for “OI resolution” when only 2 weeks was needed, and conversely those whose cryptococcal meningitis got rapid ART and developed catastrophic CNS-IRIS that delayed neurologic recovery for months. Experienced practice would rather delay ART for 5 weeks in crypto meningitis than risk a brain swelling crisis experienced clinicians cannot reverse.

CD4 Thresholds Anchor Primary Prophylaxis

in experienced hands, the CD4-stratified prophylaxis framework is the highest-yield tool for OI prevention. CD4 <200: TMP-SMX 1 single-strength daily for PCP prophylaxis; or TMP-SMX 1 DS three times weekly; atovaquone or dapsone for sulfa allergy. CD4 <100 AND Toxoplasma IgG positive: TMP-SMX 1 DS daily covers both PCP and toxoplasmosis (the same drug). CD4 <50: MAC prophylaxis with azithromycin 1200 mg weekly is no longer routinely recommended in patients about to start effective ART (2018 IDSA update) — the rapid ART benefit obviates the need. Annual TB screening (IGRA preferred over TST). HBV/HCV serologies and treatment. STI screening. HPV vaccination if eligible.

Rapid ART (≤2 Weeks) for Most OIs

Current standard for most OIs is rapid ART initiation within 2 weeks of OI treatment start. The mortality benefit of early viral suppression substantially exceeds IRIS risk. The ACTG A5164 trial established this for non-CNS OIs — earlier ART (median 12 days) reduced mortality and AIDS progression compared to deferred ART (median 45 days). The standard for PCP, MAC, oral candidiasis, cryptococcosis without CNS involvement, Kaposi sarcoma, and most other OIs: start ART within 2 weeks of OI treatment initiation, monitor closely for IRIS but do not delay ART defensively. Drug interactions guide regimen choice (rifampin and PIs/INSTIs require attention).

Delayed ART for Cryptococcal and TB Meningitis

The two specific exceptions to rapid ART are cryptococcal meningitis and TB meningitis. For both, the IRIS reaction in the CNS produces life-threatening cerebral edema, increased ICP, and neurologic deterioration. Cryptococcal meningitis: delay ART for 4-6 weeks after initiation of antifungal induction (amphotericin B + flucytosine × 2 weeks then fluconazole consolidation); the COAT trial showed 2-fold mortality increase with earlier ART. TB meningitis: delay ART for at least 4-8 weeks after TB treatment initiation (similar IRIS risk; randomized trial data support delayed timing). For non-meningeal TB, ART within 2-4 weeks is reasonable depending on CD4.

Prophylaxis Discontinuation When CD4 Recovers

Patients on suppressive ART with CD4 recovery to >200 cells/μL for 3+ months can safely discontinue PCP prophylaxis per IDSA guidelines. Toxoplasma prophylaxis discontinues at CD4 >200 sustained 3+ months. MAC prophylaxis (if previously started) discontinues at CD4 >100 sustained 3+ months. The corresponding restart thresholds: PCP/Toxo restart if CD4 falls below 100-200 or virologic failure occurs. CMV and other endemic mycoses prophylaxis: individualized based on local epidemiology and ART response. Documentation in chart of “prophylaxis stopped per CD4 criteria date X” prevents accidental re-prescribing during transitions of care.

Illustrative Scenario — Composite Teaching Case

(Composite teaching scenario assembled from published patterns; not an individual patient.)

A patient in their thirties presented with new-onset HIV (CD4 35, VL 850,000) and cryptococcal meningitis confirmed by CSF cryptococcal antigen and India ink positive. Initiated amphotericin B lipid 4 mg/kg/day + flucytosine 25 mg/kg q6h induction × 2 weeks, followed by fluconazole 800 mg daily consolidation × 8 weeks then 200 mg daily maintenance. Despite low CD4 and high VL, ART was deliberately delayed for 5 weeks after antifungal initiation per cryptococcal meningitis protocol. Then started bictegravir/emtricitabine/tenofovir alafenamide. PCP and toxoplasma prophylaxis with TMP-SMX DS daily added immediately. At 12 weeks: VL undetectable, CD4 rose to 145. Mild IRIS reaction at week 8 (mild headache, low-grade fever) managed with NSAIDs without need for steroids or ART interruption. At 6 months CD4 was 290 and the patient was clinically well.

Takeaway: Cryptococcal meningitis is the textbook indication for delayed ART (4-6 weeks after antifungal induction) — the temptation to start ART immediately in a treatment-naive AIDS patient with low CD4 is wrong here, and the COAT trial established that earlier ART doubles mortality through CNS-IRIS. The 5-week wait does not delay long-term immune recovery meaningfully.

Practice Pattern Refinements vs Standard Algorithm

  1. CD4-stratified prophylaxis at every visit. <200 PCP, <100 + Toxo IgG+ TMP-SMX DS, <50 MAC (no longer routine if rapid ART). Annual TB screen (IGRA), HBV/HCV serologies, STI screen, HPV vaccine.
  2. Rapid ART within 2 weeks for non-CNS OIs. ACTG A5164 mortality benefit exceeds IRIS risk for PCP, MAC, candidiasis, KS, and other non-CNS OIs. Drug interactions guide regimen choice.
  3. Delayed ART 4-6 weeks for cryptococcal meningitis, 4-8 weeks for TB meningitis. CNS-IRIS can be fatal in these specific contexts. COAT trial established crypto delay; randomized trial data support TB meningitis delay.
  4. Document prophylaxis discontinuation criteria explicitly. PCP/Toxo stop at CD4 >200 × 3 months on suppressive ART. MAC stop at CD4 >100 × 3 months. Chart note with date prevents accidental re-prescribing during care transitions.
HIV OI — CD4 Stratification + ART Timing CD4-tiered prophylaxis with rapid vs delayed ART decision for specific OIs. HIV Opportunistic Infections — Prophylaxis + ART Timing CD4 anchors prophylaxis · Rapid ART for most · Delayed ART for crypto/TB meningitis CD4 >200 Low OI risk ▸ No primary OI prophylaxis ▸ Continue ART, monitor ▸ Annual TB screen (IGRA) ▸ STI screen at recommended intervals ▸ HPV, HepB, MMR vaccines Stop PCP/Toxo if CD4 >200 × 3 mo on suppressive ART CD4 <200 PCP risk PCP prophylaxis: ▸ TMP-SMX 1 SS daily or 1 DS 3×/wk ▸ Dapsone alternative (G6PD screen first) ▸ Atovaquone if sulfa allergy Cryptococcal screen Serum CrAg if CD4 <100 → LP if positive CD4 <100 + Toxo IgG: add Toxo prophylaxis: ▸ TMP-SMX 1 DS daily (covers both PCP+Toxo) ▸ Atovaquone alternative ▸ Dapsone + pyrimethamine + leucovorin CMV screen Ophthalmology eval if CD4 <50 CD4 <50 Highest OI risk MAC: ▸ Azithromycin 1200 mg/wk ▸ No longer routine if starting ART rapidly CMV: ▸ Quarterly dilated retinal exam Endemic mycoses Histoplasma serum/urine Ag if endemic region Rapid ART (≤2 weeks) PCP, MAC, candidiasis, Kaposi, non-CNS cryptococcosis, most other OIs Delayed ART (4-8 weeks) ▸ Cryptococcal meningitis (delay 4-6 wk) ▸ TB meningitis (delay 4-8 wk) IRIS Recognition + Management ▸ Paradoxical: worsening OI symptoms 1-12 weeks after ART start despite microbiologic response ▸ Continue ART (do not stop) · NSAIDs for mild · Prednisone 0.5-1 mg/kg for severe (especially CNS)

S6. Pearls, Pitfalls & FAQ

★ Pearl 1: Beta-D-glucan helps in PCP

Beta-D-glucan >200 pg/mL has high negative predictive value for PCP and supports the diagnosis when bronchoscopy is risky or delayed. It is also positive in invasive candidiasis and aspergillosis but NEGATIVE in cryptococcus and zygomycetes. Combine with serum LDH, ABG, and HRCT for high-probability diagnosis when definitive testing is pending.

⚠ Pitfall 1: Starting ART too early in cryptococcal meningitis

Early ART initiation (<2 weeks) in cryptococcal meningitis increases mortality from 30% to 45% via cryptococcal IRIS (COAT trial). Defer ART for 4-6 weeks after starting antifungal induction. The same applies to TB meningitis (defer 4-8 weeks). Patient and family should be counseled about this delay.

★ Pearl 2: TMP-SMX prophylaxis covers two infections

TMP-SMX 1 DS daily prevents PCP AND toxoplasmosis (when CD4 <100 with positive Toxo IgG). Dapsone alone covers PCP but NOT toxo unless paired with pyrimethamine + leucovorin. This makes TMP-SMX overwhelmingly first-line. Sulfa desensitization protocols recover >75% of patients with prior "sulfa allergy" for life-saving access.

⚠ Pitfall 2: Forgetting to measure opening pressure

In cryptococcal meningitis, elevated intracranial pressure (ICP >25 cm H2O) is the leading cause of death and visual loss. ALWAYS measure opening pressure on every LP and drain therapeutic CSF (50% reduction or to <20 cm H2O) daily until pressure normalizes. Mannitol and steroids are NOT effective for cryptococcal ICP and may worsen outcomes.

★ Pearl 3: Cryptococcal antigen screening saves lives

Serum CrAg lateral flow assay screening for ALL HIV+ patients with CD4 <100 detects asymptomatic cryptococcemia and prevents progression to meningitis. Positive serum CrAg without symptoms warrants LP to rule out CNS disease and pre-emptive fluconazole 800 mg PO daily for 2 weeks if asymptomatic and CSF negative. WHO recommends this screen-and-treat strategy globally.

⚠ Pitfall 3: Stopping ART for IRIS

The instinct to stop ART when IRIS develops is wrong. Stopping ART allows OI progression, viral rebound, and worse long-term outcomes. CONTINUE ART, treat the OI, and add corticosteroids for moderate-severe IRIS. Only stop ART for life-threatening IRIS unresponsive to all measures (extremely rare). Counsel patients before ART start that worsening symptoms briefly are EXPECTED and treatable.

Frequently Asked Questions

Q1. At what CD4 count should PCP prophylaxis be started?
Start primary PCP prophylaxis at CD4 less than 200 cells/microliter, OR CD4 less than 14% regardless of count, OR a history of oropharyngeal candidiasis. The first-line agent is TMP-SMX one DS tablet PO daily, or one SS tablet daily. Alternatives include dapsone 100 mg PO daily (after G6PD screening), atovaquone 1500 mg PO daily, or aerosolized pentamidine 300 mg monthly. Discontinue when CD4 is sustained over 200 for at least 3 months on ART.
Q2. When should ART be started after diagnosis of an opportunistic infection?
Start ART within 2 weeks of OI diagnosis for most infections per the ACTG A5164 trial, which showed reduced AIDS progression and death. Exceptions: (1) cryptococcal meningitis, delay ART 4 to 6 weeks after starting antifungal therapy due to high IRIS mortality; (2) tuberculous meningitis, delay 4 to 8 weeks; (3) other forms of TB, start within 2 weeks if CD4 is less than 50, and within 8 weeks otherwise. The DREAM trial confirmed early ART benefit for non-CNS OIs.
Q3. How is cryptococcal meningitis treated?
Induction phase (2 weeks): liposomal amphotericin B 3 to 4 mg/kg IV daily plus flucytosine 25 mg/kg PO four times daily. Consolidation phase (8 weeks): fluconazole 800 mg PO daily. Maintenance/secondary prophylaxis: fluconazole 200 mg PO daily for at least 1 year, until CD4 is sustained over 100 with undetectable viral load for at least 3 months. Repeated therapeutic LP is critical for opening pressure greater than 25 cm H2O. Single-dose liposomal amphotericin B regimens are emerging.
Q4. What is immune reconstitution inflammatory syndrome (IRIS)?
IRIS is a paradoxical worsening or unmasking of an opportunistic infection or autoimmune phenomenon after ART initiation due to recovering immune function. Risk factors: low pre-ART CD4 (less than 50), high baseline VL, rapid VL decline, untreated OI at ART start. Most common with TB, MAC, cryptococcus, CMV, PML, KS. Median onset 4 to 8 weeks after ART. Treatment: continue ART (do not stop), treat the underlying OI aggressively, add corticosteroids (prednisone 1 mg/kg/day) for severe cases or per organism (mandatory for TB-IRIS with CNS or airway involvement).
Q5. What CD4-stratified primary prophylaxis is recommended?
CD4 less than 200: TMP-SMX one DS daily for PCP. CD4 less than 100 plus positive Toxoplasma IgG: TMP-SMX one DS daily prevents toxoplasmosis (also covers PCP). CD4 less than 50: traditionally azithromycin 1200 mg PO weekly for MAC, but the 2020 update no longer recommends MAC primary prophylaxis if ART is initiated promptly because effective ART rapidly restores immunity. CD4 less than 50 plus positive CMV IgG with detectable CMV viremia: monitor for end-organ disease (no proven primary prophylaxis).
GUIDELINE REFERENCES

Primary guideline documents this article draws on. Links resolve via DOI to the publisher; access may require a subscription.

Leave a Reply

Your email address will not be published. Required fields are marked *