BackgroundFew data exist on the use of text messaging as a tool to promote retention in HIV care and virologic suppression at the clinic level in the United States. We describe the protocol for a study designed to investigate whether a text messaging intervention that supports healthy behaviors, encourages consistent engagement with care, and promotes antiretroviral persistence can improve retention in care and virologic suppression among patients in an urban safety-net HIV clinic in San Francisco.Methods/DesignConnect4Care (C4C) is a single-site, randomized year-long study of text message appointment reminders vs. text message appointment reminders plus thrice-weekly supportive, informational, and motivational text messages. Eligible consenting patients are allocated 1:1 to the two arms within strata defined by HIV diagnosis within the past 12 months (i.e. “newly diagnosed”) vs. earlier. Study participants must receive primary care at the San Francisco General Hospital HIV clinic, speak English, possess a cell phone and be willing to send/receive up to 25 text messages per month, a have viral load >200 copies/μL, and be either new to the clinic or have a history of poor retention. The primary efficacy outcome is virologic suppression at 12 months and the key secondary outcome, which will also be examined as a mediator of the primary outcome, is retention in HIV care, as operationalized by kept and missed primary care visits. Process outcomes include text message response rate and percent of time in study without cell phone service. Generalized estimating equation log-binomial models will be used for intent to treat, per protocol, and mediation analyses. An assessment of the cost and cost-effectiveness of the intervention is planned along with a qualitative evaluation of the intervention.DiscussionFindings from this study will provide valuable information about the use of behavioral-theory based text messaging to promote retention in HIV care and virologic suppression, further elucidate the challenges of using texting technology with marginalized urban populations, and help guide the development of new mobile health strategies to improve HIV care cascade outcomes.Trial registrationNCT01917994Electronic supplementary materialThe online version of this article (doi:10.1186/s12879-014-0718-6) contains supplementary material, which is available to authorized users.